@ -11604,10 +11604,7 @@ function createResponseStatusError(status, url) {
@@ -11604,10 +11604,7 @@ function createResponseStatusError(status, url) {
}
return new _util . UnexpectedResponseException ( 'Unexpected server response (' + status + ') while retrieving PDF "' + url + '".' , status ) ;
}
function validateResponseStatus ( status , isHttp ) {
if ( ! isHttp ) {
return status === 0 ;
}
function validateResponseStatus ( status ) {
return status === 200 || status === 206 ;
}
exports . createResponseStatusError = createResponseStatusError ;
@ -13446,8 +13443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@@ -13446,8 +13443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} ( ) ;
var version , build ;
{
exports . version = version = '1.9.526 ' ;
exports . build = build = '4edd4fb a' ;
exports . version = version = '1.9.528 ' ;
exports . build = build = '9b14f8e a' ;
}
exports . getDocument = getDocument ;
exports . LoopbackPort = LoopbackPort ;
@ -29210,8 +29207,8 @@ exports.SVGGraphics = SVGGraphics;
@@ -29210,8 +29207,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict" ;
var pdfjsVersion = '1.9.526 ' ;
var pdfjsBuild = '4edd4fb a' ;
var pdfjsVersion = '1.9.528 ' ;
var pdfjsBuild = '9b14f8e a' ;
var pdfjsSharedUtil = _ _w _pdfjs _require _ _ ( 0 ) ;
var pdfjsDisplayGlobal = _ _w _pdfjs _require _ _ ( 98 ) ;
var pdfjsDisplayAPI = _ _w _pdfjs _require _ _ ( 55 ) ;
@ -35073,8 +35070,8 @@ if (!_global_scope2.default.PDFJS) {
@@ -35073,8 +35070,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global _scope2 . default . PDFJS ;
{
PDFJS . version = '1.9.526 ' ;
PDFJS . build = '4edd4fb a' ;
PDFJS . version = '1.9.528 ' ;
PDFJS . build = '9b14f8e a' ;
}
PDFJS . pdfBug = false ;
if ( PDFJS . verbosity !== undefined ) {
@ -51910,7 +51907,7 @@ var PDFFetchStreamReader = function () {
@@ -51910,7 +51907,7 @@ var PDFFetchStreamReader = function () {
}
var url = this . _stream . source . url ;
fetch ( url , createFetchOptions ( this . _headers , this . _withCredentials ) ) . then ( function ( response ) {
if ( ! ( 0 , _network _utils . validateResponseStatus ) ( response . status , _this . _stream . isHttp ) ) {
if ( ! ( 0 , _network _utils . validateResponseStatus ) ( response . status ) ) {
throw ( 0 , _network _utils . createResponseStatusError ) ( response . status , url ) ;
}
_this . _reader = response . body . getReader ( ) ;
@ -52023,7 +52020,7 @@ var PDFFetchStreamRangeReader = function () {
@@ -52023,7 +52020,7 @@ var PDFFetchStreamRangeReader = function () {
this . _headers . append ( 'Range' , 'bytes=' + rangeStr ) ;
var url = this . _stream . source . url ;
fetch ( url , createFetchOptions ( this . _headers , this . _withCredentials ) ) . then ( function ( response ) {
if ( ! ( 0 , _network _utils . validateResponseStatus ) ( response . status , _this3 . _stream . isHttp ) ) {
if ( ! ( 0 , _network _utils . validateResponseStatus ) ( response . status ) ) {
throw ( 0 , _network _utils . createResponseStatusError ) ( response . status , url ) ;
}
_this3 . _readCapability . resolve ( ) ;