good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit e3050279 authored by Anmol Sethi's avatar Anmol Sethi
Browse files

dial.go: Clarify http.NewRequestWithContext error

parent 693fac92
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ func handshakeRequest(ctx context.Context, urls string, opts *DialOptions, copts
req, err := http.NewRequestWithContext(ctx, "GET", u.String(), nil)
if err != nil {
return nil, fmt.Errorf("http.NewRequestWithContext failed: %w", err)
return nil, fmt.Errorf("failed to create new http request: %w", err)
}
req.Header = opts.HTTPHeader.Clone()
req.Header.Set("Connection", "Upgrade")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment