Update pkg/util/vhost/http.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Sword 2024-12-24 17:36:40 +09:00 committed by GitHub
parent ae5fe4c8a6
commit 3a5c2bf06a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ func NewHTTPReverseProxy(option HTTPReverseProxyOptions, vhostRouter *Routers) *
return nil, nil return nil, nil
}, },
} }
// alrough register http protocol with a h2t, but it's only used for grpc. // although register http protocol with a h2t, but it's only used for grpc.
// for normal http request, it still uses h1t. // for normal http request, it still uses h1t.
h1t.RegisterProtocol("http", &grpcSwitchH2Transport{h2t: h2t}) h1t.RegisterProtocol("http", &grpcSwitchH2Transport{h2t: h2t})