Skip to content

Commit 9e7fdbf

Browse files
nicholashusingopherbot
authored andcommitted
internal/http3: fix wrong argument being given when validating header value
Change-Id: I04eb0db74bfe677829d06623ec3ab77d6a6a6964 Reviewed-on: https://go-review.googlesource.com/c/net/+/788880 Reviewed-by: Damien Neil <[email protected]> Auto-Submit: Nicholas Husin <[email protected]> LUCI-TryBot-Result: [email protected] <[email protected]> Reviewed-by: Nicholas Husin <[email protected]>
1 parent b686e5f commit 9e7fdbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/http3/body.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (r *bodyReader) Read(p []byte) (n int, err error) {
194194
if r.trailer == nil {
195195
return nil
196196
}
197-
if !validWireHeaderFieldName(name) || !httpguts.ValidHeaderFieldValue(name) {
197+
if !validWireHeaderFieldName(name) || !httpguts.ValidHeaderFieldValue(value) {
198198
return nil
199199
}
200200
name = textproto.CanonicalMIMEHeaderKey(textproto.TrimString(name))

0 commit comments

Comments
 (0)