-
Notifications
You must be signed in to change notification settings - Fork 375
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
Re-add query string to http.url tag #353
Conversation
d62b4d8
to
3f2d44f
Compare
This pull request needs a test added still. |
# REQUEST_URI is only available depending on what web server is running though. | ||
# So when its not available, we want the original, unmutated PATH_INFO, which | ||
# is just the relative path without query strings. | ||
url = env['REQUEST_URI'] || original_env['PATH_INFO'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep the behavior as before, we'll re-evaluate keeping or not the query string later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change implements the query string behavior as it was prior to #351, plus a small bugfix.
c65d6e7
to
60069cd
Compare
60069cd
to
a66ec42
Compare
This recent pull request #351 effectively removed query strings from
http.url
in the process of trying to address an edge case concerning exception handling. We don't want to change this behavior right now; this pull request partially reverts the change, while retaining a secondary preference for the original PATH_INFO, which should retain the bugfix from the previous PR.