You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the logic within the line 118 in requestALB.go should also account for multivalueheaders!! This causes issues with https redirects! As the host header will be missing if the lambda is connected to an alb with multivalue headers included.
serverAddress := "https://" + req.Headers["host"]
Issue with redirect would look like: "https:///path" instead of "https://host/path"!!!
I know that multivalueheaders indicate the possibility of multiple values. But I think some logic should be implemented for the host header at least (take the first value).
New code to look something like:
`
host := req.Headers["host"]
if value, ok := req.MultiValueHeaders["host"]; ok && len(value) > 0 {
host = value[0]
}
serverAddress := "https://" + host
`
The text was updated successfully, but these errors were encountered:
Hello!
I think the logic within the line 118 in requestALB.go should also account for multivalueheaders!! This causes issues with https redirects! As the host header will be missing if the lambda is connected to an alb with multivalue headers included.
serverAddress := "https://" + req.Headers["host"]
Issue with redirect would look like: "https:///path" instead of "https://host/path"!!!
I know that multivalueheaders indicate the possibility of multiple values. But I think some logic should be implemented for the host header at least (take the first value).
New code to look something like:
`
`
The text was updated successfully, but these errors were encountered: