Skip to content

fix(pre-request script): avoid encoding tags in parsing request urls - INS-3379 - #7249

Merged
ihexxa merged 8 commits into
developfrom
pre-req-fix-req
Apr 10, 2024
Merged

fix(pre-request script): avoid encoding tags in parsing request urls - INS-3379#7249
ihexxa merged 8 commits into
developfrom
pre-req-fix-req

Conversation

@ihexxa

@ihexxa ihexxa commented Apr 7, 2024

Copy link
Copy Markdown
Contributor

Background:
In pre-request script execution, originally active request urls will be parsed with URL web API. But in some cases, tags like nunjucks tags would be encoded which would introduce problems in manipulation and sending request.
This change parses urls manually for avoiding this problem.

Changes:

  • avoid encoding tags in parsing request urls
  • clean up request body transforming
  • add tests

@ihexxa ihexxa self-assigned this Apr 7, 2024
@ihexxa ihexxa changed the title fix(pre-request script): avoid encoding tags in parsing request urls fix(pre-request script): avoid encoding tags in parsing request urls - INS-3379 Apr 7, 2024
@ihexxa
ihexxa requested a review from a team April 8, 2024 02:30
@CurryYangxx

Copy link
Copy Markdown
Member

Does this change #7229 need to be reverted?

@ihexxa

ihexxa commented Apr 8, 2024

Copy link
Copy Markdown
Contributor Author

@CurryYangxx Good catch 👍, updated.

jackkav
jackkav previously approved these changes Apr 9, 2024
@ihexxa
ihexxa enabled auto-merge (squash) April 10, 2024 07:14
@ihexxa
ihexxa merged commit 36ecfc5 into develop Apr 10, 2024
@ihexxa
ihexxa deleted the pre-req-fix-req branch April 10, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants