Skip to content

Commit

Permalink
correct broken error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JeppW committed Nov 12, 2024
1 parent 658497b commit 561d76a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -2505,7 +2505,7 @@ func parseChunkSize(r *bufio.Reader) (int, error) {
c, err := r.ReadByte()
if err != nil {
return -1, ErrBrokenChunk{
error: fmt.Errorf("cannot read '\r' char at the end of chunk size: %w", err),
error: fmt.Errorf("cannot read '\\r' char at the end of chunk size: %w", err),
}
}
// Skip chunk extension after chunk size.
Expand All @@ -2522,7 +2522,7 @@ func parseChunkSize(r *bufio.Reader) (int, error) {
}
if err := r.UnreadByte(); err != nil {
return -1, ErrBrokenChunk{
error: fmt.Errorf("cannot unread '\r' char at the end of chunk size: %w", err),
error: fmt.Errorf("cannot unread '\\r' char at the end of chunk size: %w", err),
}
}
break
Expand Down

0 comments on commit 561d76a

Please sign in to comment.