Skip to content

Commit

Permalink
feat: add function to parse HTTP header parameters (valyala#1685)
Browse files Browse the repository at this point in the history
* feat: add function to parse HTTP header parameters

The implementation is based on RFC-9110 5.6.6.

* test: add fuzz for VisitHeaderParams
  • Loading branch information
nickajacks1 authored and Max-Cheng committed Feb 12, 2024
1 parent 7f4eefb commit 035c6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 035c6ea

Please sign in to comment.