mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 06:20:42 +01:00
refactor all methods strings to const (#5726)
This commit is contained in:
1 parent
0fdf7eca48
commit
5ffacbb6ea
18 files changed
+84
-84
No files matched your search
@@ -143,7 +143,7 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, des
|
||||
return
|
||||
}
|
||||
|
||||
if r.Method == "DELETE" {
|
||||
if r.Method == http.MethodDelete {
|
||||
if resp.StatusCode == http.StatusNotFound {
|
||||
// this is normal
|
||||
responseStatusCode := responseFn(resp, w)
|
||||
|
||||
Reference in new issue
Block a user