(rq *http.Request)
| 480 | } |
| 481 | |
| 482 | func FixQuotedSlashes(rq *http.Request) { |
| 483 | uri := rq.RequestURI |
| 484 | if docWithSlashPathRegex.MatchString(uri) { |
| 485 | if stop := strings.IndexAny(uri, "?#"); stop >= 0 { |
| 486 | uri = uri[0:stop] |
| 487 | } |
| 488 | rq.URL.Path = uri |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | func wouldMatch(router *mux.Router, rq *http.Request, method string) (found bool, keyspace string) { |
| 493 | savedMethod := rq.Method |
no outgoing calls
no test coverage detected