From 0fdc15aabf9f5b49610286b5d7702bafe2d0dad8 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 19 Jan 2021 13:34:33 +0100 Subject: [PATCH] [fix] add request data to request history - fixes #133 --- wuzz.go | 1 + 1 file changed, 1 insertion(+) 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)