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 () {
245245 if ( xhr . readyState === 2 ) {
246246 try {
247247 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' ) {
249249 xhr . responseType = 'arraybuffer' ;
250250 }
251251 } catch ( e ) { }
@@ -357,7 +357,7 @@ Request.prototype.onLoad = function () {
357357 try {
358358 contentType = this . xhr . getResponseHeader ( 'Content-Type' ) ;
359359 } catch ( e ) { }
360- if ( contentType === 'application/octet-stream' ) {
360+ if ( contentType === 'application/octet-stream' || contentType === 'application/octet-stream; charset=UTF-8' ) {
361361 data = this . xhr . response || this . xhr . responseText ;
362362 } else {
363363 data = this . xhr . responseText ;
You can’t perform that action at this time.
0 commit comments