-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Handle trailing slash on http urls #10631
Conversation
Hello @aarchiba 👋! It looks like you've made some changes in your pull request, so I've checked the code again for style. There are no PEP8 style issues with this pull request - thanks! 🎉 Comment last updated at 2020-08-07 14:31:36 UTC |
astropy/utils/tests/test_data.py
Outdated
@@ -2086,3 +2086,28 @@ def test_clear_download_cache_variants(temp_cache, valid_urls): | |||
def test_ftp_tls_auto(temp_cache): | |||
url = "ftp://anonymous:mail%40astropy.org@gdc.cddis.eosdis.nasa.gov/pub/products/iers/finals2000A.all" | |||
download_file(url) | |||
|
|||
|
|||
@pytest.mark.parametrize('base', ["http://exmaple.com", "https://example.com"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the typo intentional?
@pytest.mark.parametrize('base', ["http://exmaple.com", "https://example.com"]) | |
@pytest.mark.parametrize('base', ["http://example.com", "https://example.com"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix! The diff looks fine, but I'll play with this tomorrow.
p.s. Ignore coverage failure as usual. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work. Thanks!
If you don't care to fix the typo, this should be okay to merge. The typo doesn't really affect the test, but I'll wait for your reply.
Er, not sure whether this wants a changelog entry? Otherwise fine. |
Doesn't hurt to have the change log if you have already written it. Thanks! |
Handle trailing slash on http urls
Handle trailing slash on http urls
Handle trailing slash on http urls
Description
This pull request is to ensure the cache mechanism treats
http://example.com
andhttp://example.com/
equally.Fixes #10630
EDIT: Follow up of #10437