(c *Context, root *node, trailingSlash bool)
| 806 | } |
| 807 | |
| 808 | func redirectFixedPath(c *Context, root *node, trailingSlash bool) bool { |
| 809 | req := c.Request |
| 810 | rPath := req.URL.Path |
| 811 | |
| 812 | if fixedPath, ok := root.findCaseInsensitivePath(cleanPath(rPath), trailingSlash); ok { |
| 813 | req.URL.Path = bytesconv.BytesToString(fixedPath) |
| 814 | redirectRequest(c) |
| 815 | return true |
| 816 | } |
| 817 | return false |
| 818 | } |
| 819 | |
| 820 | func redirectRequest(c *Context) { |
| 821 | req := c.Request |
no test coverage detected