|
@ -103,7 +103,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
http.Redirect(w, r, "/"+upload.Filename, 301) |
|
|
|
|
|
|
|
|
http.Redirect(w, r, "/"+upload.Filename, 303) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -139,7 +139,7 @@ func uploadPutHandler(c web.C, w http.ResponseWriter, r *http.Request) { |
|
|
|
|
|
|
|
|
func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) { |
|
|
func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) { |
|
|
if r.FormValue("url") == "" { |
|
|
if r.FormValue("url") == "" { |
|
|
http.Redirect(w, r, "/", 301) |
|
|
|
|
|
|
|
|
http.Redirect(w, r, "/", 303) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -174,7 +174,7 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
http.Redirect(w, r, "/"+upload.Filename, 301) |
|
|
|
|
|
|
|
|
http.Redirect(w, r, "/"+upload.Filename, 303) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|