Skip to content

Commit

Permalink
revert req.headers removal
Browse files Browse the repository at this point in the history
  • Loading branch information
khuezy committed Aug 30, 2023
1 parent 1ab5c7e commit 6b3bd86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ async function handleMiddleware(
responseHeaders.forEach((value, key) => {
if (key.startsWith(xMiddlewareKey)) {
const k = key.substring(xMiddlewareKey.length);
res.headers[k] = value;
res.headers[k] = req.headers[k] = value;
} else {
res.headers[key] = value;
res.headers[key] = req.headers[key] = value;
}
});

Expand Down

0 comments on commit 6b3bd86

Please sign in to comment.