Ticket #2842 defect new
[PATCH] Handle bad formatted headers in lineRecieved() in twisted/web/http.py
|Reported by:||alexis||Owned by:|
|Component:||web||Keywords:||http, key, val, line, split, lineRecieved, httpclient|
|Cc:||thijs, exarkun, jesstess, jasonjwwilliams||Branch:|
Some web servers send us bad formatted headers. In these cases, the instruction [ key, val = line.split(':', 1) ] just don't work because there is no ":" in line. So there is a little patch that makes some tests before splitting. I don't know if this is useful for twisted but there is a lot of servers that send headers like that...