File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ Request.prototype.create = function () {
245
245
if ( xhr . readyState === 2 ) {
246
246
try {
247
247
var contentType = xhr . getResponseHeader ( 'Content-Type' ) ;
248
- if ( self . supportsBinary && contentType === 'application/octet-stream' ) {
248
+ if ( self . supportsBinary && contentType === 'application/octet-stream' || contentType === 'application/octet-stream; charset=UTF-8' ) {
249
249
xhr . responseType = 'arraybuffer' ;
250
250
}
251
251
} catch ( e ) { }
@@ -357,7 +357,7 @@ Request.prototype.onLoad = function () {
357
357
try {
358
358
contentType = this . xhr . getResponseHeader ( 'Content-Type' ) ;
359
359
} catch ( e ) { }
360
- if ( contentType === 'application/octet-stream' ) {
360
+ if ( contentType === 'application/octet-stream' || contentType === 'application/octet-stream; charset=UTF-8' ) {
361
361
data = this . xhr . response || this . xhr . responseText ;
362
362
} else {
363
363
data = this . xhr . responseText ;
You can’t perform that action at this time.
0 commit comments