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

Change URL of github content domains #10

Conversation

hfm
Copy link
Contributor

@hfm hfm commented Apr 27, 2014

GitHub has changed URL of content domains.

  • before: raw.github.com
  • after: raw.githubusercontent.com

see: New user content domains

And perl-install with OLD-versioned curl (7.19.7 in CentOS 6.5) fails because
SSL/TLS version probably is old.

This issue causes curl -L http://cpanmin.us/ returns 400 Bad Request
when redirecting raw.github.com to raw.githubusercontent.com.

$ curl -s -IL http://cpanmin.us/
HTTP/1.1 302 Found
Server: nginx/1.2.7
Date: Sun, 27 Apr 2014 05:23:30 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Location: https://raw.github.com/miyagawa/cpanminus/master/cpanm

HTTP/1.1 301 Moved Permanently
Date: Sun, 27 Apr 2014 05:23:31 GMT
Server: Apache
Location: https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm
Accept-Ranges: bytes
Via: 1.1 varnish
Age: 0
X-Served-By: cache-ty68-TYO
X-Cache: MISS
X-Cache-Hits: 0
Vary: Accept-Encoding

HTTP/1.1 400 Bad Request
Date: Sun, 27 Apr 2014 05:23:31 GMT
Server: Apache
Connection: close
Content-Type: text/html; charset=iso-8859-1

Using SSLv3 avoids this failure.

hfm added 2 commits April 26, 2014 18:50
GitHub has changed URL of content domains.

 * before: raw.github.com
 * after: raw.githubusercontent.com

see: New user content domains https://developer.github.com/changes/2014-04-25-user-content-security/
perl-install with OLD-versioned curl (7.19.7 in CentOS 6.5) fails because
SSL/TLS version probably is old.

This issue causes `curl -L http://cpanmin.us/` returns 400 Bad Request
when redirecting raw.github.com to raw.githubusercontent.com.

```console
$ curl -s -IL http://cpanmin.us/
HTTP/1.1 302 Found
Server: nginx/1.2.7
Date: Sun, 27 Apr 2014 05:23:30 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Location: https://raw.github.com/miyagawa/cpanminus/master/cpanm

HTTP/1.1 301 Moved Permanently
Date: Sun, 27 Apr 2014 05:23:31 GMT
Server: Apache
Location: https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm
Accept-Ranges: bytes
Via: 1.1 varnish
Age: 0
X-Served-By: cache-ty68-TYO
X-Cache: MISS
X-Cache-Hits: 0
Vary: Accept-Encoding

HTTP/1.1 400 Bad Request
Date: Sun, 27 Apr 2014 05:23:31 GMT
Server: Apache
Connection: close
Content-Type: text/html; charset=iso-8859-1
```

Using SSLv3 avoids this failure.
tagomoris added a commit that referenced this pull request Apr 30, 2014
…s-for-perl-install

Change URL of github content domains
@tagomoris tagomoris merged commit fbf05d0 into tagomoris:master Apr 30, 2014
@tagomoris
Copy link
Owner

Thanks!

@hfm hfm deleted the change-url-of-github-raw-contents-for-perl-install branch April 30, 2014 09:22
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