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

fix(list.json): fix the incorrect URLs in list having several // instead of / #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pierresouchay
Copy link

@pierresouchay pierresouchay commented Jun 22, 2022

Because those URLs do not work:

curl https://srtm.kurviger.de/SRTM3//Eurasia//N35E139.hgt.zip

does not work anymore (changes on Cloudfront side recently?)

While

curl https://srtm.kurviger.de/SRTM3/Eurasia/N35E139.hgt.zip

works as expected

@pierresouchay
Copy link
Author

Really weird, works for some URLs, but not others... wondering if it is not an CloudFlare issue:

$ [22/06 2:43:59] $ curl  https://srtm.kurviger.de/SRTM3//Eurasia//N35E139.hgt.zip
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /SRTM3//Eurasia//N35E139.hgt.zip was not found on this server.</p>
<hr>
<address>Apache Server at srtm.kurviger.de Port 80</address>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"71f512b5bac50877","token":"ba837d8dfae748f7bc3691ea638fa5a7","version":"2022.6.0","si":100}' crossorigin="anonymous"></script>
</body></html>


[22/06 2:44:02] $ curl  https://srtm.kurviger.de/SRTM3/Eurasia/N35E139.hgt.zip
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.

=> Double // breaks download

But:

[22/06 2:51:29] $ curl https://srtm.kurviger.de/SRTM1//Region_07//N00W177.hgt.zip
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.

=> works...

Still, to me, the patch makes sense

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

1 participant