New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect detection of status_code in Request #121
Comments
@igrishaev Thanks for the report, will take a look at it. @ei-grad That isn't helpful at all. |
|
Bert, thanks a lot! |
@ei-grad I took over as maintainer pretty recently. A simple bump would have been enough for me to take look at it. |
Using this test:
Fix is incoming. |
@igrishaev If you could test master, I would appreciate it. I'll back port it to 1.5 tonight. Sorry you had to wait so long for a fix. |
@bertjwregeer I can't test the code the moment, sorry. I've done with the project already =) But the diff looks fine and the tests are well. It seems you can close the issue. Thanks. |
When reading a Response from_file we want to make sure that if it contains an HTTP version in the status line that we strip that off, and get just the status code and status text by itself. Closes #121
When reading a Response from_file we want to make sure that if it contains an HTTP version in the status line that we strip that off, and get just the status code and status text by itself. Closes #121
When the Response was created from stream, the _status_code__get() method cannot detect status code properly, becourse it tries to sptlit start line and convert first element to int (HTTP/1.1 in my case).
The text was updated successfully, but these errors were encountered: