Skip to content

Commit

Permalink
Update req.js (#7301)
Browse files Browse the repository at this point in the history
  • Loading branch information
eashaw authored Sep 1, 2023
1 parent 4867401 commit 81d401b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/router/req.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ module.exports = function buildRequest (_req) {
// Strip undefined headers
if (undefined === _req.headers[headerKey]) {
delete _req.headers[headerKey];
}
continue;
}//•
// Make sure all remaining headers are strings
if (typeof _req.headers[headerKey] !== 'string') {
try {
Expand Down

0 comments on commit 81d401b

Please sign in to comment.