Skip to content

Commit

Permalink
Merge pull request #501 from zapier/PDE-3006-use-skipEncodingChars
Browse files Browse the repository at this point in the history
feat(legacy-scripting-runner): pass `legacy.skipEncodingChars` to `z.request()`
  • Loading branch information
eliangcs authored Feb 28, 2022
2 parents 599aa2a + f9db5d6 commit 4e291d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/legacy-scripting-runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,12 @@ const legacyScriptingRunner = (Zap, zcli, input) => {
request.params = pruneQueryParams(request.params);
}

if (_.get(app, 'legacy.skipEncodingChars')) {
// skipEncodingChars is only supported on core ^9.7.2, ^11.3.2 and >=12.x.
// core versions that don't support it will just ignore it.
request.skipEncodingChars = app.legacy.skipEncodingChars;
}

const response = await zcli.request(request);

if (!options.parseResponse) {
Expand Down

0 comments on commit 4e291d7

Please sign in to comment.