diff options
| author | Julian Hurst <ark@mansus.space> | 2023-01-20 01:27:43 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2023-01-20 01:27:43 +0100 |
| commit | e7a3649280d20d9b4f68572721684a01049ec40f (patch) | |
| tree | e4f01e310cad6b4c38daa31206ff7cd70c663a26 /imgs.go | |
| parent | 9b3e906a0ab6592eda40ae043bfff26ca07fe80d (diff) | |
| download | docspace-e7a3649280d20d9b4f68572721684a01049ec40f.tar.gz | |
Client side session cookies only (no server sessions)
Diffstat (limited to 'imgs.go')
| -rw-r--r-- | imgs.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
