Skip to content
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

[Backport][1.0] response_status_message should not fail on non-standard HTTP codes #1906

Merged
merged 2 commits into from Apr 7, 2016

Conversation

redapple
Copy link
Contributor

@redapple redapple commented Apr 6, 2016

Backporting #1857 into 1.0

utility is used in retry middleware and it was failing to handle non-standard HTTP codes.
Instead of raising exceptions when passing through to_native_str it should return
"Unknown status" message.

…rd HTTP codes

utility is used in retry middleware and it was failing to handle non-standard HTTP codes.
Instead of raising exceptions when passing through to_native_str it should return
"Unknown status" message.
@redapple
Copy link
Contributor Author

redapple commented Apr 6, 2016

Ouch, w3lib 1.14 is not compatible with 1.0 branch for some URLs. There may be real problematic cases. I'll check.

@redapple
Copy link
Contributor Author

redapple commented Apr 6, 2016

This will probably need backporting #1874

@redapple
Copy link
Contributor Author

redapple commented Apr 6, 2016

scrapy/w3lib#50 should suffice

UTF-8 is to be used for path component.
Page encoding only affects query part of URLs.
@redapple redapple merged commit fd0570e into scrapy:1.0 Apr 7, 2016
@redapple redapple deleted the backport-1.0-pr1857 branch July 11, 2016 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants