aboutsummaryrefslogtreecommitdiff
path: root/weed/storage
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-07-01 13:00:39 +0500
committerGitHub <noreply@github.com>2024-07-01 01:00:39 -0700
commit5ffacbb6eacaad6ea9558d18f9c62be2a3c4e18f (patch)
treebf5797c6b002d953d03ae68fa37c7c4be7fabc40 /weed/storage
parent0fdf7eca48892b5c6d12c1c96563755945331f16 (diff)
downloadseaweedfs-5ffacbb6eacaad6ea9558d18f9c62be2a3c4e18f.tar.xz
seaweedfs-5ffacbb6eacaad6ea9558d18f9c62be2a3c4e18f.zip
refactor all methods strings to const (#5726)
Diffstat (limited to 'weed/storage')
-rw-r--r--weed/storage/needle/needle_parse_upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/needle/needle_parse_upload.go b/weed/storage/needle/needle_parse_upload.go
index b512c16a2..28de27910 100644
--- a/weed/storage/needle/needle_parse_upload.go
+++ b/weed/storage/needle/needle_parse_upload.go
@@ -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