mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
correct comment
This commit is contained in:
parent
9b53fc2521
commit
12b0118162
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyht
|
|||
}
|
||||
|
||||
// websocket over http2 or http3, assuming backend doesn't support this, the request will be modified to http1.1 upgrade
|
||||
// The go-quic http3 implementation also puts :protocol in r.Proto for CONNECT requests (quic-go/quic-go/headers.go@70-72,185,203)
|
||||
// The quic-go http3 implementation also puts :protocol in r.Proto for CONNECT requests (quic-go/http3/headers.go@70-72,185,203)
|
||||
// TODO: once we can reliably detect backend support this, it can be removed for those backends
|
||||
if (r.ProtoMajor == 2 && r.Method == http.MethodConnect && r.Header.Get(":protocol") == "websocket") ||
|
||||
(r.ProtoMajor == 3 && r.Method == http.MethodConnect && r.Proto == "websocket") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue