Skip to content

Commit

Permalink
Clarify what values responseType can have in Node (#2121)
Browse files Browse the repository at this point in the history
It seems that `responseType: 'blob'` doesn't actually work in Node (when I tried using it, response.data was a string, not a Blob, since Node doesn't have Blobs), so this clarifies that this option should only be used in the browser
  • Loading branch information
Tyler Breisacher authored and emilyemorehouse committed May 7, 2019
1 parent 0d4fca0 commit b7a9744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -304,7 +304,8 @@ These are the available config options for making requests. Only the `url` is re
},

// `responseType` indicates the type of data that the server will respond with
// options are 'arraybuffer', 'blob', 'document', 'json', 'text', 'stream'
// options are: 'arraybuffer', 'document', 'json', 'text', 'stream'
// browser only: 'blob'
responseType: 'json', // default

// `responseEncoding` indicates encoding to use for decoding responses
Expand Down

0 comments on commit b7a9744

Please sign in to comment.