Skip to content

Commit

Permalink
Fix custom Connect response for Connect Request
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhbhatia-stripe committed Oct 17, 2024
1 parent 906e92b commit baae49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion https.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func createCustomConnectResponse(ctx *ProxyCtx) ([]byte, error) {
if ctx.proxy.ConnectRespHandler == nil {
return nil, nil
}
resp := &http.Response{Status: "200 OK", StatusCode: 200, Proto: "HTTP/1.0", Header: http.Header{}}
resp := &http.Response{Status: "200 OK", StatusCode: 200, Proto: "HTTP/1.0", ProtoMajor: 1, ProtoMinor: 0, Header: http.Header{}}
err := ctx.proxy.ConnectRespHandler(ctx, resp)
if err != nil {
return nil, err
Expand Down

0 comments on commit baae49f

Please sign in to comment.