Skip to content

Commit

Permalink
set the H3 WebTransport setting on the client side (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Feb 23, 2024
1 parent 7698fc8 commit 4f3d108
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (d *Dialer) init() {
if d.RoundTripper.AdditionalSettings == nil {
d.RoundTripper.AdditionalSettings = make(map[uint64]uint64)
}
d.RoundTripper.AdditionalSettings[settingsEnableWebtransport] = 1
d.RoundTripper.StreamHijacker = func(ft http3.FrameType, conn quic.Connection, str quic.Stream, e error) (hijacked bool, err error) {
if isWebTransportError(e) {
return true, nil
Expand Down

0 comments on commit 4f3d108

Please sign in to comment.