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 forwarding with space in url by encoding #2155

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

Mis1eader-dev
Copy link
Member

Closes #2013

@an-tao an-tao merged commit 93d8fb4 into drogonframework:master Sep 13, 2024
34 checks passed
@Mis1eader-dev
Copy link
Member Author

Mis1eader-dev commented Sep 13, 2024

@an-tao we have to revert this commit, I went ahead and tested in an environment where a Drogon server forwarded to another Drogon server and it didn't match against any handlers that contained spaces. This means no re-encoding is needed and is application-specific. It makes forwarding work for some, and breaks forwarding for others. Hence it can't be generalized for all applications.

We can close this issue as being an issue with the recipient.

@Mis1eader-dev
Copy link
Member Author

Actually we can partially revert it, as the logic in getOriginalPath is still useful in cases one overrides the path, and then wants to get the original path.

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.

drogon::app().forward(...) does not perform URL escaping
2 participants