mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-14 04:17:36 -04:00
fix: reset 'method' loop
The method var needs to be reset to "" when handling a route that is not method specific.
This commit is contained in:
@@ -209,6 +209,8 @@ func (rt Router) Route(r *http.Request) (RoutingInfo, bool) {
|
||||
if rt.rewriters[pol][rtype][r.Method] != nil {
|
||||
// use specific method
|
||||
method = r.Method
|
||||
} else {
|
||||
method = ""
|
||||
}
|
||||
|
||||
for _, ri := range rt.rewriters[pol][rtype][method] {
|
||||
|
||||
Reference in New Issue
Block a user