From 035c6eae884df21edfd4a813f261cacf47fd63be Mon Sep 17 00:00:00 2001 From: nickajacks1 <128185314+nickajacks1@users.noreply.github.com> Date: Tue, 2 Jan 2024 00:43:40 -0800 Subject: [PATCH] feat: add function to parse HTTP header parameters (#1685) * feat: add function to parse HTTP header parameters The implementation is based on RFC-9110 5.6.6. * test: add fuzz for VisitHeaderParams --- header_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header_test.go b/header_test.go index 163fdd7b75..af162e59d9 100644 --- a/header_test.go +++ b/header_test.go @@ -2335,7 +2335,7 @@ type bufioPeekReader struct { } func (r *bufioPeekReader) Read(b []byte) (int, error) { - if r.s == "" { + if len(r.s) == 0 { return 0, io.EOF }