Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

res.blob() bug #320

Closed
luoye-fe opened this issue Jul 6, 2016 · 1 comment
Closed

res.blob() bug #320

luoye-fe opened this issue Jul 6, 2016 · 1 comment
Labels

Comments

@luoye-fe
Copy link

luoye-fe commented Jul 6, 2016

When I want to use res.blob() to get an blob object, it's return an error blob ...
example in jsFiddle

Look at the source code, you is to use new Blob([res.body]) to return an blob, but if not set xhr.responseType = 'blob', it is not a binary stream ...

In fact, I think you can use the fetch api, of course, need to add polyfill, like this(fetch polyfill).

😃

@steffans
Copy link
Member

steffans commented Jul 7, 2016

Thanks, i will look into this bug.

@steffans steffans added the Bug label Jul 7, 2016
steffans added a commit that referenced this issue Jul 10, 2016
@steffans steffans closed this as completed Sep 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants