Skip to content

Commit

Permalink
Merge pull request #24 from aliyun/opt-http-handler
Browse files Browse the repository at this point in the history
add request.URL.Host in Http handler
  • Loading branch information
fanzhe328 authored Oct 25, 2022
2 parents c1c16e5 + 1128c71 commit b4cb018
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fc/http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func genHttpRequest(httpParams string, payload []byte) (*http.Request, error) {
return nil, err
}
req.URL.Path = params.Path
req.URL.Host = params.Host
req.RemoteAddr = params.ClientIP
req.Host = params.ClientIP
req.Header = params.HeadersMap
Expand Down

0 comments on commit b4cb018

Please sign in to comment.