aboutsummaryrefslogtreecommitdiff
path: root/imgs.go
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-01-26 22:28:14 +0100
committerJulian Hurst <ark@mansus.space>2023-01-26 22:28:14 +0100
commit1eb03ae3bf16f755d8ab4b2697a65b06a1d83a5e (patch)
tree8e8e9e335b325d32497813b62f727cbabfb9b2fa /imgs.go
parentb840ac196d69935e483cb5913a339f0ed8224ecd (diff)
downloaddocspace-1eb03ae3bf16f755d8ab4b2697a65b06a1d83a5e.tar.gz
"Better" http status codes
Diffstat (limited to 'imgs.go')
-rw-r--r--imgs.go3
1 files changed, 1 insertions, 2 deletions
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) {