mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fix missing context on request sent through UDS (#1251)
This commit is contained in:
committed by
Richard Connon
parent
a17a437db7
commit
5aabdae26a
@@ -716,6 +716,9 @@ func callToHTTPRequest(ctx context.Context, call *call) (*http.Request, error) {
|
||||
if err != nil {
|
||||
return req, err
|
||||
}
|
||||
// Set the context on the request to make sure transport and client handle
|
||||
// it properly and close connections at the end, e.g. when using UDS.
|
||||
req = req.WithContext(ctx)
|
||||
|
||||
req.Header = make(http.Header)
|
||||
for k, vs := range call.req.Header {
|
||||
|
||||
Reference in New Issue
Block a user