From 315071ca28ab1bdba6f1a27558f507f41a48d962 Mon Sep 17 00:00:00 2001 From: asraniel Date: Sun, 6 May 2012 21:32:30 +0200 Subject: [PATCH] Add stub for the last piece of the puzzle --- src/core.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core.js b/src/core.js index 6a5ec275c..908ba63af 100644 --- a/src/core.js +++ b/src/core.js @@ -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 :