Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
webob.Response.from_file parsing failure #250
webob.Request's from_file method seems have to an incorrect call to str.split()
Relevant code is here. The existing code works just fine on a 200 response but not on the faux 404
I suspect that this is inadvertent and that the following was probably intended.
I was a little surprised I ran into this until I realized that parsing HTTP responses is probably not a terribly common use case.
Thanks for reporting. I'll back port this to 1.6 this weekend.
This fixes #250 by not attempting to split the entire string. This is required for any status codes that are not just <number> <one word status text> Things like 404 Not Found or 402 Payment Required.