Skip to content

Commit

Permalink
re7
Browse files Browse the repository at this point in the history
  • Loading branch information
callthingsoff committed Feb 24, 2024
1 parent 5faf71f commit b8d436c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/http/pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func parsePattern(s string) (_ *pattern, err error) {

method, rest, found := s, "", false
if i := strings.IndexAny(s, " \t"); i >= 0 {
method, rest, found = s[:i], strings.Trim(s[i+1:], " \t"), true
method, rest, found = s[:i], strings.TrimLeft(s[i+1:], " \t"), true
}
if !found {
rest = method
Expand Down

0 comments on commit b8d436c

Please sign in to comment.