You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow multiple whitespace between method & pattern (#1013)
Allow separating the method and pattern with [ \t]+, this matches the
stdlib change that was made in golang/go@7b583fd
The rationale is the same as the stdlib issue, it allows you to visually
line up patterns with variable-width methods:
r.Handle("GET /my-route", handler1)
r.Handle("POST /my-route", handler2)
r.Handle("DELETE /my-route", handler3)
In general aligning ourselves with the stdlib brings less surprise for
end users.
0 commit comments