-
Notifications
You must be signed in to change notification settings - Fork 687
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Improper header checks in http plugin #1534
Comments
The right one is the 191 (we are managing the true header in case insensitive way, so the dash is the right char). Waiting for your pull request :) |
funkybob
added a commit
to funkybob/uwsgi
that referenced
this issue
May 17, 2017
Some clarity is needed on how headers are checked:
Can we assume that:
If these are true, we can dispense with the case-insensitive compare [small speed up, maybe] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http.c:191: else if (uhttp.auto_gzip && !uwsgi_strnicmp("ACCEPT-ENCODING", 15, hh, keylen)) {
http.c:302: else if (uhttp.auto_gzip && !uwsgi_strncmp("ACCEPT_ENCODING", 15, hh, keylen)) {
At least one of these is wrong.
One calls strnicmp, the other strncmp.
One has _ the other has -
I wonder if this is related to why I can never get http-auto-gzip to work.
The text was updated successfully, but these errors were encountered: