diff options
author | Valery Piashchynski <[email protected]> | 2021-03-16 14:16:03 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-03-16 14:16:03 +0300 |
commit | 6958ad0069656cc71ec2e4cae1cfc69954ba7410 (patch) | |
tree | 5d3337f7adca8c0741a5a93d0501469c85ed8b99 /plugins/http/plugin.go | |
parent | 102e473110b9be0924193aeecd4b946a7053737e (diff) |
👷 Correct the http internal redirect code
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/http/plugin.go')
-rw-r--r-- | plugins/http/plugin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index 0686f6b5..69d13bc8 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -418,7 +418,7 @@ func (s *Plugin) redirect(w http.ResponseWriter, r *http.Request) { RawQuery: r.URL.RawQuery, } - http.Redirect(w, r, target.String(), http.StatusTemporaryRedirect) + http.Redirect(w, r, target.String(), http.StatusPermanentRedirect) } // https://golang.org/pkg/net/http/#Hijacker |