Remove some debug stuff
This commit is contained in:
parent
1e9c701aca
commit
145af6dbfb
|
@ -88,13 +88,11 @@ func reply(w http.ResponseWriter, code int, message string) {
|
||||||
func postFiles(w http.ResponseWriter, r *http.Request) {
|
func postFiles(w http.ResponseWriter, r *http.Request) {
|
||||||
contentRange, err := parseContentRange(r.Header.Get("Content-Range"))
|
contentRange, err := parseContentRange(r.Header.Get("Content-Range"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("FOO")
|
|
||||||
reply(w, http.StatusBadRequest, err.Error())
|
reply(w, http.StatusBadRequest, err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if contentRange.Size == -1 {
|
if contentRange.Size == -1 {
|
||||||
log.Print("FOO2")
|
|
||||||
reply(w, http.StatusBadRequest, "Content-Range must indicate total file size.")
|
reply(w, http.StatusBadRequest, "Content-Range must indicate total file size.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue