Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from
Apr 10, 2024

Conversation

ihexxa
Copy link
Contributor

@ihexxa ihexxa commented Apr 7, 2024

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
Member

Does this change #7229 need to be reverted?

@ihexxa
Copy link
Contributor Author

ihexxa commented Apr 8, 2024

@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
7 checks passed
@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.

None yet

3 participants