mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 11:57:02 +00:00
Nothing special: Linting
This commit is contained in:
2
tree.go
2
tree.go
@@ -132,7 +132,7 @@ func (_tree *tree) serve(reqCtx *fasthttp.RequestCtx, path string) bool {
|
||||
// response because older user agents may not understand 301/307.
|
||||
// Shouldn't send the response for POST or HEAD; that leaves GET.
|
||||
if _tree.method == MethodGet {
|
||||
note := "<a href=\"" + utils.HtmlEscape(urlToRedirect) + "\">Moved Permanently</a>.\n"
|
||||
note := "<a href=\"" + utils.HTMLEscape(urlToRedirect) + "\">Moved Permanently</a>.\n"
|
||||
ctx.Write(note)
|
||||
}
|
||||
_tree.pool.Put(ctx)
|
||||
|
||||
Reference in New Issue
Block a user