From e7a3649280d20d9b4f68572721684a01049ec40f Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Fri, 20 Jan 2023 01:27:43 +0100 Subject: Client side session cookies only (no server sessions) --- imgs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'imgs.go') diff --git a/imgs.go b/imgs.go index e0495a0..78705ca 100644 --- a/imgs.go +++ b/imgs.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "log" "os" "mime" "net/http" @@ -89,8 +90,7 @@ func imgs(w http.ResponseWriter, r *http.Request) { } return } else if err != nil { - sendError(w, r, err.Error(), http.StatusInternalServerError) - return + log.Println(err) } sendFlash(w, r, "redirect", "/imgs") http.Redirect(w, r, "/login", http.StatusSeeOther) -- cgit v1.2.3