diff options
-rw-r--r-- | sklad/session.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sklad/session.go b/sklad/session.go index 0d0686a..02fe0b0 100644 --- a/sklad/session.go +++ b/sklad/session.go @@ -51,7 +51,7 @@ func sessionWrap(inner func(http.ResponseWriter, *http.Request)) func( w.Header().Set("Cache-Control", "no-store") redirect := "/login" - if r.RequestURI != "/" { + if r.RequestURI != "/" && r.Method == http.MethodGet { redirect += "?redirect=" + url.QueryEscape(r.RequestURI) } |