refactor all methods strings to const (#5726)

This commit is contained in:
Konstantin Lebedev authored and GitHub committed 2024-07-01 01:00:39 -07:00
1 parent 0fdf7eca48
commit 5ffacbb6ea
18 files changed
+84 -84

No files matched your search

+1 -1
View File
@@ -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