diff options
| author | Julian Hurst <ark@mansus.space> | 2023-01-26 22:28:14 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2023-01-26 22:28:14 +0100 |
| commit | 1eb03ae3bf16f755d8ab4b2697a65b06a1d83a5e (patch) | |
| tree | 8e8e9e335b325d32497813b62f727cbabfb9b2fa /imgs.go | |
| parent | b840ac196d69935e483cb5913a339f0ed8224ecd (diff) | |
| download | docspace-1eb03ae3bf16f755d8ab4b2697a65b06a1d83a5e.tar.gz | |
"Better" http status codes
Diffstat (limited to 'imgs.go')
| -rw-r--r-- | imgs.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) { |
