Skip to content

Commit 8b5e4bd

Browse files
committed
remove parens
1 parent ebfda40 commit 8b5e4bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: proxy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, backendAddr stri
8383
}
8484
}()
8585

86-
req := (&http.Request{
86+
req := &http.Request{
8787
Method: http.MethodConnect,
8888
URL: &url.URL{Host: backendAddr},
8989
Header: map[string][]string{"User-Agent": {grpcUA}},
90-
})
90+
}
9191
if t := proxyURL.User; t != nil {
9292
u := t.Username()
9393
p, _ := t.Password()

0 commit comments

Comments
 (0)