From 29a929e577347b7a92e537d886f056398c0e13bd Mon Sep 17 00:00:00 2001 From: William Hilton Date: Tue, 11 Sep 2018 00:54:14 -0400 Subject: [PATCH] fix: forward HTTP status --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9579654..8ec530f 100644 --- a/index.js +++ b/index.js @@ -107,6 +107,7 @@ async function service (req, res) { body: (req.method !== 'GET' && req.method !== 'HEAD') ? req : undefined } ) + res.statusCode = f.status for (let h of exposeHeaders) { if (h === 'content-length') continue if (f.headers.has(h)) {