Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 07f6f29

Browse files
committed
add TO-DO to remove host property setting after internal fix
1 parent c41afe5 commit 07f6f29

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/templates/netlifyFunction.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ exports.handler = (event, context, callback) => {
3131
process.env.BINARY_SUPPORT = "yes";
3232
}
3333

34-
// When running at the netlify, the header "host" is not set in
35-
// multiValueHeaders. So we manually set this property.
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
3637
if(!event.multiValueHeaders.hasOwnProperty('host')) {
3738
event.multiValueHeaders['host'] = [event.headers['host']]
3839
}

0 commit comments

Comments
 (0)