Move handler errors and path/signature splitting to handlers package

This commit is contained in:
DarthSim
2025-09-10 18:47:43 +03:00
committed by Sergei Aleksandrovich
parent bc9d16a622
commit 2fcb39085e
8 changed files with 65 additions and 63 deletions

View File

@@ -131,6 +131,9 @@ func (r *Router) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
continue
}
// Set req.Pattern. We use it to trim path prefixes in handlers.
req.Pattern = rr.path
if !rr.silent {
LogRequest(reqID, req)
}