a broken HTTP header from IE7 triggers a python error
A page refresh in IE7 (version number 7.0.6001) behind an ISP proxy in Singapore has a header with a malformed line: "
Re, 188.8.131.52#015#012" where 184.108.40.206 is the client IP. This breaks the multiple assignment in HTTPRequest.read_headers():
k, v = line.split(":", 1) }}}
since it's trying to assign a list with one item to 2 variables. The cryptic error is "ValueError: need more than 1 value to unpack". My solution is to enclose the problem code in a 'try' block and issue a 'continue' on failure.