Skip to content

Commit

Permalink
Merge pull request #28 from stripe/saurabhbhatia/custom-connect-respo…
Browse files Browse the repository at this point in the history
…nse-fix

Fix custom Connect response for Connect Request
  • Loading branch information
saurabhbhatia-stripe authored Oct 17, 2024
2 parents 906e92b + baae49f commit e12ef06
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 e12ef06

Please sign in to comment.