-
Notifications
You must be signed in to change notification settings - Fork 177
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
Middleware cannot modify query string parameters? #741
Comments
I made a local modification to the closure to parse the URL just in time, which works as expected. |
Can't imagine a reason we shouldn't support that. Can you make a PR for it? |
benferse
added a commit
to benferse/ureq
that referenced
this issue
Mar 27, 2024
algesten
pushed a commit
that referenced
this issue
Apr 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to write a simple middleware that adds a query string parameter to an outgoing request, but it didn't appear to get included in what actually hit the wire:
Looking at the logic in
Request::do_call
this seems intentional - the url that gets captured by the closure that ends up callingUnit::connect
is parsed before the middleware chain is run. Is this an oversight, or is modifying the URL in middleware not supported for some reason?The text was updated successfully, but these errors were encountered: