Skip to content

Commit

Permalink
fix(repeater): decode base64 bodies before scripts (#553)
Browse files Browse the repository at this point in the history
closes #552
  • Loading branch information
derevnjuk authored Jun 21, 2024
1 parent 46087ac commit 869d8f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/RequestExecutor/HttpRequestExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,12 @@ export class HttpRequestExecutor implements RequestExecutor {

const result = await vm.exec<ScriptEntrypoint>(
this.DEFAULT_SCRIPT_ENTRYPOINT,
script.toJSON()
{
...script.toJSON(),
body: script.encoding
? iconv.encode(script.body, script.encoding).toString()
: script.body
}
);

return new Request(result);
Expand Down

0 comments on commit 869d8f4

Please sign in to comment.