From 166eab005f5b1f1fa0a8f174135321655d5b0701 Mon Sep 17 00:00:00 2001 From: liu chang Date: Mon, 25 Sep 2023 21:02:34 +0800 Subject: [PATCH] fix: ret.write body data for post/put/delete request --- compat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/compat.js b/compat.js index 8fe30e2..ebfa23f 100644 --- a/compat.js +++ b/compat.js @@ -129,6 +129,7 @@ module.exports = function (proxy) { throw new Error('invalid protocol') } ret = agent.request(ureq) + ret.write(JSON.stringify(req.body)); } return ret