Skip to content

Commit 6e84faa

Browse files
authored
fix: forward HTTP status (#2)
1 parent 529b038 commit 6e84faa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ async function service (req, res) {
107107
body: (req.method !== 'GET' && req.method !== 'HEAD') ? req : undefined
108108
}
109109
)
110+
res.statusCode = f.status
110111
for (let h of exposeHeaders) {
111112
if (h === 'content-length') continue
112113
if (f.headers.has(h)) {

0 commit comments

Comments
 (0)