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.
This commit is contained in:
Gibheer 2019-01-24 09:18:46 +01:00
parent 6a5c0b92bd
commit a9634bbcaa

View File

@ -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 (
<html>
<head>
<title>{{ .Title }}</title>
<meta name="referrer" content="same-origin">
<link rel="shortcut icon" href="/static/favicon" />
<style type="text/css">
* { font-size: 100%; }