Return range header for puts

This commit is contained in:
Felix Geisendörfer 2013-03-18 17:07:00 +01:00
parent 6f19077d2d
commit 7ed4ad326b
1 changed files with 5 additions and 1 deletions

View File

@ -98,10 +98,14 @@ func putFile(w http.ResponseWriter, r *http.Request, fileId string) {
return
}
// @TODO: Return X-Missing header
setFileRangeHeader(w, fileId)
}
func headFile(w http.ResponseWriter, r *http.Request, fileId string) {
setFileRangeHeader(w, fileId)
}
func setFileRangeHeader(w http.ResponseWriter, fileId string) {
chunks, err := getReceivedChunks(fileId)
if err != nil {
reply(w, http.StatusInternalServerError, err.Error())