Skip to content
Snippets Groups Projects
Commit d65f3684 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed a minor issue

parent a0fa2ca2
Branches
Tags
No related merge requests found
...@@ -55,7 +55,7 @@ func pageImageDetail(ctx PageContext) http.Handler { ...@@ -55,7 +55,7 @@ func pageImageDetail(ctx PageContext) http.Handler {
if err != nil { if err != nil {
panic(err) panic(err)
} }
http.Redirect(w, r, r.URL.Path, http.StatusTemporaryRedirect) http.Redirect(w, r, r.URL.Path, http.StatusFound)
return return
case "delete": case "delete":
_, err = ctx.Database.Exec("DELETE FROM images WHERE id = $1 AND owner = $2", info.Id, user.Id) _, err = ctx.Database.Exec("DELETE FROM images WHERE id = $1 AND owner = $2", info.Id, user.Id)
...@@ -68,7 +68,7 @@ func pageImageDetail(ctx PageContext) http.Handler { ...@@ -68,7 +68,7 @@ func pageImageDetail(ctx PageContext) http.Handler {
panic(err) panic(err)
} }
} }
http.Redirect(w, r, "/me/images", http.StatusTemporaryRedirect) http.Redirect(w, r, "/me/images", http.StatusFound)
return return
default: default:
if err = formatTemplate(w, "image_detail.html", ImageDetailData{ if err = formatTemplate(w, "image_detail.html", ImageDetailData{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment