Closed
Description
I am trying to read this url
https://www.bitstamp.net/api/v2/trading-pairs-info/
It fails (see theelous3/asks#60) with an exception:
....
File "/Users/michael/.pyenv/versions/3.6.3/lib/python3.6/site-packages/h11/_readers.py", line 85, in maybe_read_from_SEND_RESPONSE_server
return class_(headers=list(_decode_header_lines(lines[1:])),
File "/Users/michael/.pyenv/versions/3.6.3/lib/python3.6/site-packages/h11/_readers.py", line 55, in _decode_header_lines
matches = validate(header_field_re, line)
File "/Users/michael/.pyenv/versions/3.6.3/lib/python3.6/site-packages/h11/_util.py", line 96, in validate
raise LocalProtocolError(msg)
Looking closer, this is the header that seems to cause trouble:
bytearray(b'Set-Cookie: ___utmvafIumyLc=kUd\x01UpAt; path=/; Max-Age=900')
My guess is it's the \x
.
Metadata
Metadata
Assignees
Labels
No labels