diff --git a/wuzz.go b/wuzz.go index cebdecf..94a1a0a 100644 --- a/wuzz.go +++ b/wuzz.go @@ -793,6 +793,7 @@ func (a *App) SubmitRequest(g *gocui.Gui, _ *gocui.View) error { // parse POST/PUT/PATCH data if r.Method == http.MethodPost || r.Method == http.MethodPut || r.Method == http.MethodPatch { bodyStr := getViewValue(g, REQUEST_DATA_VIEW) + r.Data = bodyStr if headers.Get("Content-Type") != "multipart/form-data" { if headers.Get("Content-Type") == "application/x-www-form-urlencoded" { bodyStr = strings.Replace(bodyStr, "\n", "&", -1)