mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-06 18:03:29 +02:00
Move handler errors and path/signature splitting to handlers package
This commit is contained in:
committed by
Sergei Aleksandrovich
parent
bc9d16a622
commit
2fcb39085e
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user