From 1eb03ae3bf16f755d8ab4b2697a65b06a1d83a5e Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Thu, 26 Jan 2023 22:28:14 +0100 Subject: "Better" http status codes --- imgs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'imgs.go') diff --git a/imgs.go b/imgs.go index 4ee448b..4e614e9 100644 --- a/imgs.go +++ b/imgs.go @@ -102,8 +102,7 @@ func imgs(w http.ResponseWriter, r *http.Request) { } else if err != nil { log.Println(err) } - sendFlash(w, r, "redirect", r.URL.String()) - http.Redirect(w, r, "/login", http.StatusSeeOther) + unauthorized(w, r) } func extractImgsGlob(userDocPath string) ([]Doc, error) { -- cgit v1.2.3