Konstantin Lebedev
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
weed/server/filer_server_handlers_write.go
|
@ -195,6 +195,8 @@ func (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request) { |
|
|
httpStatus := http.StatusInternalServerError |
|
|
httpStatus := http.StatusInternalServerError |
|
|
if err == filer_pb.ErrNotFound { |
|
|
if err == filer_pb.ErrNotFound { |
|
|
httpStatus = http.StatusNoContent |
|
|
httpStatus = http.StatusNoContent |
|
|
|
|
|
writeJsonQuiet(w, r, httpStatus, nil) |
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
writeJsonError(w, r, httpStatus, err) |
|
|
writeJsonError(w, r, httpStatus, err) |
|
|
return |
|
|
return |
|
|