Skip to content

Commit 9e889be

Browse files
dmrubalexellis
authored andcommitted
Propagate Host header from incoming request to the function.
Host HTTP header was not propagated to the function because it is not a part of http.Request.Header map. Signed-off-by: Dmitri Rubinstein <[email protected]>
1 parent a4ecda1 commit 9e889be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

executor/http_runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ func (f *HTTPFunctionRunner) Run(req FunctionRequest, contentLength int64, r *ht
107107
request.Header.Set(h, r.Header.Get(h))
108108
}
109109

110+
request.Host = r.Host
110111
copyHeaders(request.Header, &r.Header)
111112

112113
ctx, cancel := context.WithTimeout(context.Background(), f.ExecTimeout)

0 commit comments

Comments
 (0)