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

committed by
GitHub

parent
0fdf7eca48
commit
5ffacbb6ea
@@ -43,7 +43,7 @@ func ParseUpload(r *http.Request, sizeLimit int64, bytesBuffer *bytes.Buffer) (p
|
||||
}
|
||||
}
|
||||
|
||||
if r.Method == "POST" {
|
||||
if r.Method == http.MethodPost {
|
||||
contentType := r.Header.Get("Content-Type")
|
||||
|
||||
// If content-type is explicitly set, upload the file without parsing form-data
|
||||
|
Reference in New Issue
Block a user