From d55aa65c752f35f62e6e8dfd4440fea74a268ca4 Mon Sep 17 00:00:00 2001 From: Toyosawa Yasutaka Date: Thu, 13 Jun 2019 16:08:37 +0900 Subject: [PATCH] fix: it do not include req.headers into headers(send to php). --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d6be9e6..52de4a4 100644 --- a/index.js +++ b/index.js @@ -79,7 +79,7 @@ module.exports = function (userOptions = {}, customParams = {}) { if (typeof headers[header] === 'undefined') { delete headers[header] } } - for (header in req.headers) { + for (const header in req.headers) { headers['HTTP_' + header.toUpperCase().replace(/-/g, '_')] = req.headers[header]; }