Skip to content

Commit

Permalink
change skipSpace to space and tab only
Browse files Browse the repository at this point in the history
  • Loading branch information
cdvr1993 committed Dec 12, 2023
1 parent 89a7be3 commit 14e7c0f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions baggage/baggage.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,7 @@ func skipSpace(s string, offset int) int {
i := offset
for ; i < len(s); i++ {
c := s[i]
if c != ' ' &&
c != '\t' &&
c != '\n' &&
c != '\v' &&
c != '\f' &&
c != '\r' {
if c != ' ' && c != '\t' {
break
}
}
Expand Down

0 comments on commit 14e7c0f

Please sign in to comment.