working commit
This commit is contained in:
@@ -158,6 +158,9 @@ func (route Route) Match(req *http.Request) bool {
|
||||
if req.Method != route.Method {
|
||||
return false
|
||||
}
|
||||
if req.Method == http.MethodConnect {
|
||||
return true
|
||||
}
|
||||
match := route.Regexp.MatchString(req.URL.Path)
|
||||
if match {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user