From fc82ed7402ab2ceb1df3a7430ff9fbe366ba3487 Mon Sep 17 00:00:00 2001 From: Xiaoan Lin Date: Sun, 29 Jul 2018 22:21:55 +0900 Subject: [PATCH] Add stream response type option --- lib/Requestable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Requestable.js b/lib/Requestable.js index 44702b94..7a670a49 100644 --- a/lib/Requestable.js +++ b/lib/Requestable.js @@ -176,7 +176,7 @@ class Requestable { headers: headers, params: queryParams, data: data, - responseType: raw ? 'text' : 'json', + responseType: (raw==='stream') ? 'stream' : (raw ? 'text' : 'json'), }; log(`${config.method} to ${config.url}`); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy