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

Hotfix proxy support #2323

Merged
merged 1 commit into from
Dec 27, 2022
Merged

Hotfix proxy support #2323

merged 1 commit into from
Dec 27, 2022

Conversation

mkrasnitski
Copy link
Collaborator

This is a hotfix that addresses #2322. It solves the issue around slashes by leaving the existing one in. However, I'm not satisfied with this as a longterm solution, because providing a proxy url with a slash at the end will produce a malformed URL (with two slashes in a row). It will correctly parse, but the request will likely 404. In the future, the string replacement should be replaced with calls to methods on Url. The only pain here is that replacing the domain of a Url object is not easy (there are no methods directly on Url to do so).

@github-actions github-actions bot added the http Related to the `http` module. label Dec 27, 2022
@arqunis arqunis added the fix A solution to an existing bug. label Dec 27, 2022
@arqunis arqunis merged commit 72c7646 into serenity-rs:next Dec 27, 2022
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Feb 28, 2023
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request May 18, 2023
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request May 30, 2023
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Sep 21, 2023
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Oct 17, 2023
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Oct 24, 2023
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A solution to an existing bug. http Related to the `http` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants