From 7c00186210a7bb9db5687dbea63188afe043b62b Mon Sep 17 00:00:00 2001 From: tigerwill90 Date: Mon, 24 Jun 2024 18:36:44 +0200 Subject: [PATCH] docs: fix localRedirect docs --- fox.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fox.go b/fox.go index 9dd1d52..5b34293 100644 --- a/fox.go +++ b/fox.go @@ -611,11 +611,8 @@ func applyMiddleware(scope MiddlewareScope, mws []middleware, h HandlerFunc) Han } // localRedirect redirect the client to the new path, but it does not convert relative paths to absolute paths -// like Redirect does. -// If the Content-Type header has not been set, localRedirect sets it -// to "text/html; charset=utf-8" and writes a small HTML body. -// Setting the Content-Type header to any value, including nil, -// disables that behavior. +// like Redirect does. If the Content-Type header has not been set, localRedirect sets it to "text/html; charset=utf-8" +// and writes a small HTML body. Setting the Content-Type header to any value, including nil, disables that behavior. func localRedirect(w http.ResponseWriter, r *http.Request, path string, code int) { if q := r.URL.RawQuery; q != "" { path += "?" + q