Fix Content-Length/Body Len Mismatch
This commit is contained in:
parent
b9ba10cca2
commit
86dc420ebe
|
@ -446,7 +446,7 @@ func (handler *Handler) sendError(w http.ResponseWriter, r *http.Request, err er
|
|||
w.Header().Set("Content-Type", "text/plain")
|
||||
w.Header().Set("Content-Length", strconv.Itoa(len(reason)))
|
||||
w.WriteHeader(status)
|
||||
w.Write([]byte(err.Error() + "\n"))
|
||||
w.Write([]byte(err.Error()))
|
||||
}
|
||||
|
||||
// Make an absolute URLs to the given upload id. If the base path is absolute
|
||||
|
|
Loading…
Reference in New Issue