From a9634bbcaa2377e07a47b9ff1f05dfda39336a9d Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 24 Jan 2019 09:18:46 +0100 Subject: monfront - fix referer Somewhen in the last couple years, something called a referer policy was introduced. This avoided the correct relocation after any action was sent. Now with the fix, the redirect properly works. --- cmd/monfront/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/monfront') diff --git a/cmd/monfront/main.go b/cmd/monfront/main.go index a4855d8..15d2661 100644 --- a/cmd/monfront/main.go +++ b/cmd/monfront/main.go @@ -236,7 +236,7 @@ func checkAction(w http.ResponseWriter, r *http.Request) { log.Printf("could not adjust checks %#v: %s", checks, err) return } - ref, found := r.Header["Referrer"] + ref, found := r.Header["Referer"] if found { w.Header()["Location"] = ref } else { @@ -541,6 +541,7 @@ var ( {{ .Title }} +