mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 03:23:33 +08:00
refactor all methods strings to const (#5726)
This commit is contained in:

committed by
GitHub

parent
0fdf7eca48
commit
5ffacbb6ea
@@ -39,7 +39,7 @@ func (fs *FilerServer) autoChunk(ctx context.Context, w http.ResponseWriter, r *
|
||||
var reply *FilerPostResult
|
||||
var err error
|
||||
var md5bytes []byte
|
||||
if r.Method == "POST" {
|
||||
if r.Method == http.MethodPost {
|
||||
if r.Header.Get("Content-Type") == "" && strings.HasSuffix(r.URL.Path, "/") {
|
||||
reply, err = fs.mkdir(ctx, w, r, so)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user