Skip to content

Commit

Permalink
replace the WebTransport offer header if already set (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Jul 8, 2023
1 parent 16472ff commit ed254ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (d *Dialer) Dial(ctx context.Context, urlStr string, reqHdr http.Header) (*
if reqHdr == nil {
reqHdr = http.Header{}
}
reqHdr.Add(webTransportDraftOfferHeaderKey, "1")
reqHdr.Set(webTransportDraftOfferHeaderKey, "1")
req := &http.Request{
Method: http.MethodConnect,
Header: reqHdr,
Expand Down

0 comments on commit ed254ba

Please sign in to comment.