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 /_www/http_target.js | |
| 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 '_www/http_target.js')
| -rw-r--r-- | _www/http_target.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_www/http_target.js b/_www/http_target.js index 2177a64..965dd20 100644 --- a/_www/http_target.js +++ b/_www/http_target.js @@ -192,7 +192,7 @@ export class HTTPTarget { parent.appendChild(wrapper); } generateRequestParameters(parent) { - if (!this.opts.Params || this.opts.WithRawBody) { + if (!this.opts.Params) { return; } if (Object.keys(this.opts.Params).length === 0) { @@ -219,7 +219,7 @@ export class HTTPTarget { title.innerText = "Raw request body"; wrapper.appendChild(title); const elRawbody = document.createElement("textarea"); - elRawbody.innerText = this.opts.RawBody; + elRawbody.innerText = atob(this.opts.RawBody); elRawbody.style.width = "100%"; elRawbody.style.boxSizing = "border-box"; elRawbody.style.height = "10em"; |
