|
|
@ -42,7 +42,7 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
reqNeedle, originalSize, ne := needle.CreateNeedleFromRequest(r, vs.FixJpgOrientation, vs.fileSizeLimitBytes) |
|
|
|
reqNeedle, originalSize, contentMd5, ne := needle.CreateNeedleFromRequest(r, vs.FixJpgOrientation, vs.fileSizeLimitBytes) |
|
|
|
if ne != nil { |
|
|
|
writeJsonError(w, r, http.StatusBadRequest, ne) |
|
|
|
return |
|
|
@ -70,6 +70,7 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
ret.ETag = reqNeedle.Etag() |
|
|
|
ret.Mime = string(reqNeedle.Mime) |
|
|
|
setEtag(w, ret.ETag) |
|
|
|
w.Header().Set("Content-MD5", contentMd5) |
|
|
|
writeJsonQuiet(w, r, httpStatus, ret) |
|
|
|
} |
|
|
|
|
|
|
|