We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a709f commit c03e07aCopy full SHA for c03e07a
src/serverHandler/main.go
@@ -90,12 +90,8 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
90
}
91
92
switch {
93
- case data.CanUpload && r.URL.RawQuery == "sync" && r.Method == http.MethodPost:
94
- h.saveUploadFiles(h.root+data.handlerReqPath, data.CanDelete, r)
95
- http.Redirect(w, r, r.URL.Path, http.StatusFound)
96
- return
97
case data.CanUpload && r.URL.RawQuery == "upload" && r.Method == http.MethodPost:
98
- h.saveUploadFiles(h.root+data.handlerReqPath, false, r)
+ h.saveUploadFiles(h.root+data.handlerReqPath, data.CanDelete, r)
99
http.Redirect(w, r, r.URL.Path, http.StatusFound)
100
return
101
case data.CanMkdir && strings.HasPrefix(r.URL.RawQuery, "mkdir"):
0 commit comments