-
Notifications
You must be signed in to change notification settings - Fork 4
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
Header case sensitivity and status code #88
Conversation
davidcaron
commented
Sep 16, 2019
- Use lowercase to compare if header is a hop by hop
- forward to the client the status code received from the proxied server
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.
Although dict is case insensitive, it doesn't guarantee that the keys are stored as either lowercase or capitalized or anything else for that matter.
We should modify the filtering method to never have to worry about any case.
extra note
Might need to consider backport merge into 0.5.2
if this fix is required for a project.
Current master has a new feature #22 which is not tested with magpie (Ouranosinc/Magpie#190)
@cehbrecht probably we should tag 0.6.x
because of oauth feature now in master
Not sure what you mean? I'm passing the headers as is, the conversion to lowercase is only to do the filtering, which handles uppercase and lowercase. |
I didn't notice the |
@davidcaron merged. thanks. @fmigneault I will backport this patch to the 0.5.x branch. I have still some more work to do on the oauth stuff. So, I would prefer to wait before I make a new release. |
* headers are case-insensitive (some servers use lowercase only) * forward to the client the status code received from the proxied server
@fmigneault ... backported to 0.5.x. Shall we collect more patches before a 0.5.3 release? |
We can wait for more patches unless this is needed by @davidcaron for a quick fix somewhere? |
Yes, I had to confirm, but a 0.5.3 release would fix one bug we have in a deployment (the client expects 201, but gets 200). |
@davidcaron |