Skip to content

Commit

Permalink
remove confusing comments from registration
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 7, 2024
1 parent db05314 commit 0ccb829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ func (b *Bundle) register(pattern string, handler http.HandlerFunc) {
matches := reGo122.FindStringSubmatch(pattern)
var path, method string
if len(matches) > 2 { // path in the form "GET /path/to/resource"
method = matches[1] // method part with a space
path = matches[2] // path part from url pattern without method
method = matches[1]
path = matches[2]
pattern = method + " " + b.basePath + path
} else { // path is just "/path/to/resource"
path = pattern
Expand Down

0 comments on commit 0ccb829

Please sign in to comment.