-
Notifications
You must be signed in to change notification settings - Fork 108
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 values must be of type str or bytes #90
Comments
@kimg1234 the reason is that there may be several headers with the same name, so we need to preserve all values. Taking a first value is not correct because this way all other headers are discarded. But that's not good w3lib's data format doesn't work as-is with requests; +1 to have a function which converts between these two data formats. Another option is refactor |
thanks you reply, win7 64 py2.711
|
I have a puzzle,
why headers_raw_to_dict don't return to this?
now it return this
i use headers_raw_to_dict when i want to copy Request Headers from chrome,
then i use this headers for requests
but Header values must be of type str or bytes
so i need do this
The text was updated successfully, but these errors were encountered: