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.ts | |
| 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.ts')
| -rw-r--r-- | _www/http_target.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_www/http_target.ts b/_www/http_target.ts index 63d938e..462b3ff 100644 --- a/_www/http_target.ts +++ b/_www/http_target.ts @@ -232,7 +232,7 @@ export class HTTPTarget { } private generateRequestParameters(parent: HTMLElement) { - if (!this.opts.Params || this.opts.WithRawBody) { + if (!this.opts.Params) { return; } if (Object.keys(this.opts.Params).length === 0) { @@ -267,7 +267,7 @@ export class HTTPTarget { 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"; |
