From: asraniel Date: Sun, 6 May 2012 19:32:30 +0000 (+0200) Subject: Add stub for the last piece of the puzzle X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=315071ca28ab1bdba6f1a27558f507f41a48d962;p=pdf.js.git Add stub for the last piece of the puzzle --- diff --git a/src/core.js b/src/core.js index 6a5ec27..908ba63 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 :