mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 06:20:42 +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
@@ -127,7 +127,7 @@ func debug(params ...interface{}) {
|
||||
|
||||
func submitForClientHandler(w http.ResponseWriter, r *http.Request, masterFn operation.GetMasterFn, grpcDialOption grpc.DialOption) {
|
||||
m := make(map[string]interface{})
|
||||
if r.Method != "POST" {
|
||||
if r.Method != http.MethodPost {
|
||||
writeJsonError(w, r, http.StatusMethodNotAllowed, errors.New("Only submit via POST!"))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user