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

Remove attempt to POST request download of cling ROOT tarball #34

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

richleigh
Copy link
Contributor

Not sure what the original intent here was, but the docs for both python 2 (https://docs.python.org/2/library/urllib2.html#urllib2.urlopen) and urllib.request for python 3 (https://docs.python.org/3.8/library/urllib.request.html#urllib.request.urlopen) both show the second parameter here as being for the data that is used in a POST request or similar.

The ROOT server isn't configured to allow POST requests to download the file, and so responds with a 405.

$ curl -I -X GET https://root.cern.ch/download/root_v6.32.08.source.tar.gz
HTTP/1.1 200 OK
...

$ curl -I -X POST https://root.cern.ch/download/root_v6.32.08.source.tar.gz
HTTP/1.1 405 Method Not Allowed
...

@wlav wlav merged commit 40aaad6 into wlav:master Feb 6, 2025
@wlav
Copy link
Owner

wlav commented Feb 6, 2025

I don't know how that came to be; code is ancient, always seems to have worked. :) Thanks for the fix!

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.

2 participants