mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 23:03:24 +00:00
Add X-Forwarded-Host test when already present
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
3d44fa813a
commit
3e0ed5edd7
@ -103,8 +103,6 @@ func forwardRequest(w http.ResponseWriter, r *http.Request, proxyClient *http.Cl
|
||||
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
||||
defer cancel()
|
||||
|
||||
log.Printf("Upstream request to: %s, %+v\n", upstreamReq.URL.Path, upstreamReq)
|
||||
|
||||
res, resErr := proxyClient.Do(upstreamReq.WithContext(ctx))
|
||||
if resErr != nil {
|
||||
badStatus := http.StatusBadGateway
|
||||
|
Reference in New Issue
Block a user