Skip to content

Commit

Permalink
do not detect alt-svc if it's already http3
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Jun 16, 2023
1 parent dd9c751 commit a6ae22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roundtrip.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error
if err != nil {
return
}
if t.altSvcJar != nil {
if resp.ProtoMajor != 3 && t.altSvcJar != nil {
if v := resp.Header.Get("alt-svc"); v != "" {
t.handleAltSvc(req, v)
}
Expand Down

0 comments on commit a6ae22b

Please sign in to comment.