aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-01-26 22:37:11 +0100
committerJulian Hurst <ark@mansus.space>2023-01-26 22:37:11 +0100
commit1c11554e269460aa6e234b9de1952802a5ce8008 (patch)
treeb814856a1e80ae0b0bfcd93c64374068c38a06be
parent6052dbe8951e108e3a8d4c7b4493b920e60500fc (diff)
downloaddocspace-1c11554e269460aa6e234b9de1952802a5ce8008.tar.gz
Set path on flash cookies to / to avoid redirect pbs when path=/docs/
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 204803a..c593db9 100644
--- a/main.go
+++ b/main.go
@@ -376,6 +376,7 @@ func sendFlash(w http.ResponseWriter, r *http.Request, name, s string) {
Name: name,
Value: str,
MaxAge: 0,
+ Path: "/",
// Only https on qutebrowser
//Secure: true,
HttpOnly: true,