From b7a9744518f71edad2991b48035e8cade37955a6 Mon Sep 17 00:00:00 2001 From: Tyler Breisacher Date: Tue, 7 May 2019 12:26:33 -0700 Subject: [PATCH] Clarify what values responseType can have in Node (#2121) 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 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1aab5f3..29f1574 100755 --- a/README.md +++ b/README.md @@ -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