From 03f616b3132e4eabf0a2cdc405b6e0d130382948 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Thu, 30 Apr 2015 22:21:48 +0100 Subject: [PATCH] PDF.js version 1.1.109 --- bower.json | 2 +- build/pdf.combined.js | 4 ++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 18 ++---------------- package.json | 2 +- 5 files changed, 8 insertions(+), 22 deletions(-) diff --git a/bower.json b/bower.json index c608d4a1b..2ec7c11f5 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.107", + "version": "1.1.109", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index a2b981d7d..338c4458f 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.107'; -PDFJS.build = '12be47c'; +PDFJS.version = '1.1.109'; +PDFJS.build = 'd28fb5a'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.js b/build/pdf.js index e9ff03c7e..f7c5f61b1 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.107'; -PDFJS.build = '12be47c'; +PDFJS.version = '1.1.109'; +PDFJS.build = 'd28fb5a'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 691aadc3f..aad10202b 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.107'; -PDFJS.build = '12be47c'; +PDFJS.version = '1.1.109'; +PDFJS.build = 'd28fb5a'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -33881,20 +33881,6 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = { var length = fullRequestXhr.getResponseHeader('Content-Length'); length = parseInt(length, 10); - if (fullRequestXhr.status === 206) { - // Since Chrome 39, there exists a bug where cached responses are - // served with status code 206 for non-range requests. - // Content-Length does not specify the total size of the resource - // when the status code is 206 (see RFC 2616, section 14.16). - // In this case, extract the file size from the Content-Range - // header, which is defined to be "bytes start-end/length" for - // byte range requests. - // See https://github.com/mozilla/pdf.js/issues/5512 and - // https://code.google.com/p/chromium/issues/detail?id=442318 - length = fullRequestXhr.getResponseHeader('Content-Range'); - length = length && /bytes \d+-\d+\/(\d+)/.exec(length); - length = length && parseInt(length[1], 10); - } if (!isInt(length)) { return; } diff --git a/package.json b/package.json index c7cab9f85..d2d9e0ece 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.107", + "version": "1.1.109", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",