diff options
| author | Shulhan <ms@kilabit.info> | 2024-06-08 23:25:08 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-06-08 23:25:08 +0700 |
| commit | da42a48ebec77232a90723a2dd35441402998b11 (patch) | |
| tree | e0b823b4167b2ff791018f32e249e06bdce1b9d0 /http_run_handler.go | |
| parent | 36845404fabd22aa6d339e7f7cbe839aeccf0450 (diff) | |
| download | gorankusu-da42a48ebec77232a90723a2dd35441402998b11.tar.xz | |
all: make HTTP Target Params works along with WithRawBody
Previously, if WithRawBody is true, the Params will not be rendered
and parsed during Run.
This changes makes them Params works along with WithRawBody.
If Params are set it will be rendered along with text area for raw body.
Diffstat (limited to 'http_run_handler.go')
| -rw-r--r-- | http_run_handler.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/http_run_handler.go b/http_run_handler.go index 44141f3..6c7a296 100644 --- a/http_run_handler.go +++ b/http_run_handler.go @@ -31,13 +31,11 @@ func DefaultHTTPRun() HTTPRunHandler { params any ) - if !rr.HTTPTarget.WithRawBody { - rr.HTTPTarget.paramsToPath() + rr.HTTPTarget.paramsToPath() - params, err = rr.HTTPTarget.ParamsConverter(&rr.HTTPTarget) - if err != nil { - return nil, fmt.Errorf(`%s: %w`, logp, err) - } + params, err = rr.HTTPTarget.ParamsConverter(&rr.HTTPTarget) + if err != nil { + return nil, fmt.Errorf(`%s: %w`, logp, err) } var ( |
