Closed GoogleCodeExporter closed 9 years ago
Fixed in r59.
For example:
s = """HTTP/1.x 200 OK\r\nSet-Cookie: first_cookie=cookie1; path=/;
domain=.example.com\r\nSet-Cookie: second_cookie=cookie2; path=/;
domain=.example.com\r\nContent-Length: 0\r\n\r\n"""
r = Response(s)
print r.headers
will output:
{'set-cookie': ['first_cookie=cookie1; path=/; domain=.example.com',
'second_cookie=cookie2; path=/; domain=.example.com'], 'content-length': '0'}
Headers that appear once will remain a single value, while headers that appear
multiple times will create a list of the present values.
Regards,
Jon Oberheide
Original comment by jon.ober...@gmail.com
on 24 Mar 2010 at 3:33
Original issue reported on code.google.com by
simdr...@gmail.com
on 29 Mar 2009 at 10:39Attachments: