feat(http): add support for blob as a response type (#10190)
This commit is contained in:

committed by
Victor Berchet

parent
db54a84d14
commit
76b8a49bfb
@ -120,6 +120,9 @@ export class XHRConnection implements Connection {
|
||||
case ResponseContentType.Text:
|
||||
_xhr.responseType = 'text';
|
||||
break;
|
||||
case ResponseContentType.Blob:
|
||||
_xhr.responseType = 'blob';
|
||||
break;
|
||||
default:
|
||||
throw new Error('The selected responseType is not supported');
|
||||
}
|
||||
|
Reference in New Issue
Block a user