feat(http): add support for blob as a response type (#10190)

This commit is contained in:
Damien Cassan
2016-07-21 22:44:38 +02:00
committed by Victor Berchet
parent db54a84d14
commit 76b8a49bfb
6 changed files with 36 additions and 11 deletions

View File

@ -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');
}