Fix Content-Length/Body Len Mismatch

This commit is contained in:
Naren Venkataraman 2015-11-04 04:16:41 -05:00
parent b9ba10cca2
commit 86dc420ebe
1 changed files with 1 additions and 1 deletions

View File

@ -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