From 5c445cc8ce03ab92f7daf0f0d692efaad15d3097 Mon Sep 17 00:00:00 2001 From: Kay Date: Mon, 31 Jul 2023 15:54:37 +0800 Subject: [PATCH] fix: use rawBody as the urllib data use rawBody as the urllib data --- lib/http_proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http_proxy.js b/lib/http_proxy.js index 49b4838..770c280 100644 --- a/lib/http_proxy.js +++ b/lib/http_proxy.js @@ -114,7 +114,7 @@ class HttpProxy { // urllib default use querystring to stringify form data which don't support nested object // will use qs instead of querystring to support nested object by set nestedQuerystring to true. options.nestedQuerystring = true; - options.data = requestBody; + options.data = rawBody || requestBody; // urllib wll auto set delete options.headers['content-length']; } else {