Fixed Gokapi not parsing parameters when uploading through API #31

This commit is contained in:
Marc Ole Bulling
2021-12-10 18:56:54 +01:00
parent 0bd9bd1a8d
commit cbbbef41c5
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ func Process(w http.ResponseWriter, r *http.Request, isWeb bool, maxMemory int)
if isWeb {
config = parseConfig(r.Form, true)
} else {
config = parseConfig(r.Header, false)
config = parseConfig(r.Form, false)
}
file, header, err := r.FormFile("file")
if err != nil {