-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
bug with invalid redir #1396
Comments
Makes sense. Would you make a Pull Request? |
Fixed by f137b18 Now it raises @wumpus is error text looks good and informative enough? |
Thank you, that looks perfect. (Thanks for the test example, I haven't gotten through the learning curve of your test suite yet) |
The test suite is based on pytest tool with adding several pytest fixtures and hooks. Please make a Pull Request (or just an issue) with proposal for solving dark documentation's corners. I really need feedbacks for documentation. |
This host lacks a Location: in this redir -- a not unusual thing on the Internets:
I updated to 1.1.0, and if there's allow_redirects=True the code now calls yarl.URL(None) which throws
which is not so super-useful to the programmer! May I suggest instead looking to see if we're about to pass None into yarl.URL and in this case raise ValueError(url + ' is a redirect but lacks a Location: or URI: header')
The text was updated successfully, but these errors were encountered: