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

Improved upload API

parent acb5b969
Branches
No related tags found
No related merge requests found
......@@ -69,7 +69,8 @@ func pageImageDetail(ctx PageContext) http.Handler {
panic(err)
}
}
http.Redirect(w, r, "/me/images", http.StatusFound)
w.Header().Add("Location", "/me/images")
w.WriteHeader(http.StatusFound)
fmt.Fprintf(w, "You are being redirected to: %s\n", "/me/images")
return
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment