]> git.parisson.com Git - pdf.js.git/commitdiff
Add stub for the last piece of the puzzle
authorasraniel <wolf@fryx.ch>
Sun, 6 May 2012 19:32:30 +0000 (21:32 +0200)
committerasraniel <wolf@fryx.ch>
Sun, 6 May 2012 19:32:30 +0000 (21:32 +0200)
src/core.js

index 6a5ec275c3b1a8c975688ccb69b65c754312fec3..908ba63afb493bca7d5625869f85cb3dbee328a3 100644 (file)
@@ -31,6 +31,11 @@ function getPdf(arg, callback) {
     params = { url: arg };
 
   var xhr = new XMLHttpRequest();
+  
+  if(params.headers){
+    //TODO: Code this, use xhr.setRequestHeader(key, value);
+  }
+  
   xhr.open('GET', params.url);
   xhr.mozResponseType = xhr.responseType = 'arraybuffer';
   var protocol = params.url.indexOf(':') < 0 ? window.location.protocol :