Skip to content

Conversation

@YouSsef3Ssam
Copy link
Contributor

@YouSsef3Ssam YouSsef3Ssam commented Jan 1, 2025

Hello @srtvprateek This merge request refactors the addPlutoKtorInterceptor method to improve the handling of URLs in the request.

Changes:

  • Replaced direct mutation of requestUnBuilt.url with a conditional check to ensure the URL is only updated when necessary.
  • Ensured proper handling of the actual or mock request URL in the interceptor logic to prevent unnecessary updates.

Issue:

The issue occurred when the URL was changed, causing all query parameters to be appended again, leading to duplication.
You can find the issue cause by viewing the following video:

Screen.Recording.mov

- Replaced direct mutation of `requestUnBuilt.url` with a conditional check to ensure the URL is only updated if necessary.
- Ensured proper handling of the actual or mock request URL in the interceptor logic.
@YouSsef3Ssam
Copy link
Contributor Author

@srtvprateek Any Updates On This?

@srtvprateek srtvprateek merged commit 30afdd6 into androidPluto:develop Jan 25, 2025
5 checks passed
srtvprateek pushed a commit that referenced this pull request Mar 2, 2025
- Replaced direct mutation of `requestUnBuilt.url` with a conditional check to ensure the URL is only updated if necessary.
- Ensured proper handling of the actual or mock request URL in the interceptor logic.

Co-authored-by: Youssef Essam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate Query Parameters in URL with PlutoKtorInterceptor

2 participants