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

Header not entirely on camel case #503

Closed
ghost opened this issue Nov 21, 2016 · 2 comments
Closed

Header not entirely on camel case #503

ghost opened this issue Nov 21, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 21, 2016

Hello. I've read that the headers param from the Respose object ignore case and return a camel case version of them. What about cases like Django that usesX-CSRF-Token. Can we bypass it for specific headers?

@cgoldberg
Copy link
Member

I've read that the headers param from the Respose object
ignore case and return a camel case version of them.

AFAICT, locust doesn't mess with the response headers... Maybe something is done by requests lib (or one of its dependencies)? Where are you seeing this?

FWIW, header field names are case-insensitive according to the HTTP spec: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

@ghost
Copy link
Author

ghost commented Nov 22, 2016

@cgoldberg You're right. I just read that really fast and didn't got the real meaning. Locust is not readjusting header's name case.

@ghost ghost closed this as completed Nov 22, 2016
This issue was closed.
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

No branches or pull requests

1 participant