mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-04 02:57:44 +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
@@ -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