Skip to content

Commit

Permalink
missed .data property i.e the ArrayBuffer (RicoSuter#2606)
Browse files Browse the repository at this point in the history
converting to blob then to Text of response is incorrect. and returns [object object]  the correct var is the data property
  • Loading branch information
AbuDawood authored and RicoSuter committed Jan 7, 2020
1 parent 3e789a9 commit b72965e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ return blobToText(response.blob()).pipe({{ Framework.RxJs.ObservableMergeMapMeth
return blobToText(response.blob()).flatMap(_responseText => {
{% endif -%}
{% elseif operation.RequestAngularJSBlobs -%}
return blobToText(new Blob([response]), this.q).then(_responseText => {
return blobToText(new Blob([response.data]), this.q).then(_responseText => {
{% elseif Framework.IsAngular -%}
const _responseText = response.text();
{% elseif Framework.IsAngularJS -%}
Expand All @@ -22,4 +22,4 @@ const _responseText = response.data;
const _responseText = response.data;
{% else -%}
const _responseText = xhr.responseText;
{% endif -%}
{% endif -%}

0 comments on commit b72965e

Please sign in to comment.