Commit 75fd85d4 authored by Janne Koschinski's avatar Janne Koschinski

Improved upload API

parent acb5b969
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment