Skip to content

Commit aa032e8

Browse files
committed
remove the temporary host header patch that's now supported internally
1 parent ed3b50f commit aa032e8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/templates/netlifyFunction.js

-7
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ exports.handler = (event, context, callback) => {
3131
process.env.BINARY_SUPPORT = "yes";
3232
}
3333

34-
// When running on netlify, the header "host" is not set in
35-
// multiValueHeaders so we manually set it here.
36-
// TO-DO: @lindsaylevine/@cassidoo remove after netlify supports internally
37-
if (!event.multiValueHeaders.hasOwnProperty("host")) {
38-
event.multiValueHeaders["host"] = [event.headers["host"]];
39-
}
40-
4134
// Get the request URL
4235
const { path } = event;
4336
console.log("[request]", path);

0 commit comments

Comments
 (0)