Skip to content

Commit

Permalink
[fix] add request data to request history - fixes #133
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoo committed Jan 19, 2021
1 parent b654366 commit 0fdc15a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0fdc15a

Please sign in to comment.