Closed timhughes closed 9 years ago
This doesn't change anything for me. :/ Versions 1.3 and 1.4 download something, but versions 1.1 and 1.2 don't, either with or without this.
before (go.googlecode.com):
$ curl -si -X HEAD https://go.googlecode.com/files/go1.1.darwin-amd64.tar.gz
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Set-Cookie: PREF=ID=219db1001089b37d:TM=1427481657:LM=1427481657:S=4-t1xDWCtss1uurJ; expires=Sun, 26-Mar-2017 18:40:57 GMT; path=/; domain=go.googlecode.com
X-Content-Type-Options: nosniff
Date: Fri, 27 Mar 2015 18:40:57 GMT
Server: codesite_downloads
Content-Length: 1456
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Alternate-Protocol: 443:quic,p=0.5
Connection: close
this branch (storage.googleapis.com):
$ curl -si -X HEAD https://storage.googleapis.com/golang/go1.1.darwin-amd64.tar.gz
HTTP/1.1 404 Not Found
Content-Type: application/xml; charset=UTF-8
Content-Length: 127
Date: Fri, 27 Mar 2015 18:41:12 GMT
Expires: Fri, 27 Mar 2015 18:41:12 GMT
Cache-Control: private, max-age=0
Server: UploadServer ("Built on Mar 6 2015 11:14:41 (1425669281)")
Alternate-Protocol: 443:quic,p=0.5
Connection: close
(fixed the paste in my previous comment)
Looks like they have moved only go1.2.2 and higher.
go:1.3|rb:system|py:system|[hughest@argon: /tmp]$ curl -si -X HEAD https://storage.googleapis.com/golang/go1.2.2.darwin-amd64-osx10.6.tar.gz
HTTP/1.1 200 OK
Expires: Mon, 30 Mar 2015 15:22:14 GMT
Date: Mon, 30 Mar 2015 14:22:14 GMT
Cache-Control: public, max-age=3600
Last-Modified: Mon, 05 May 2014 21:13:56 GMT
ETag: "de6dfbcdb6f0ef091653c92e8abfc9e8"
x-goog-generation: 1399324436351000
x-goog-metageneration: 2
x-goog-stored-content-encoding: identity
x-goog-stored-content-length: 54724024
Content-Type: application/x-tar
x-goog-hash: crc32c=ZiV2OA==
x-goog-hash: md5=3m37zbbw7wkWU8kuir/J6A==
x-goog-storage-class: STANDARD
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Length: 54724024
Server: UploadServer ("Built on Mar 6 2015 11:14:41 (1425669281)")
Alternate-Protocol: 443:quic,p=0.5
^C
go:1.3|rb:system|py:system|[hughest@argon: /tmp]$ curl -si -X HEAD https://storage.googleapis.com/golang/go1.2.1.darwin-amd64-osx10.6.tar.gz
HTTP/1.1 404 Not Found
Content-Type: application/xml; charset=UTF-8
Content-Length: 127
Date: Mon, 30 Mar 2015 14:22:22 GMT
Expires: Mon, 30 Mar 2015 14:22:22 GMT
Cache-Control: private, max-age=0
Server: UploadServer ("Built on Mar 6 2015 11:14:41 (1425669281)")
Alternate-Protocol: 443:quic,p=0.5
^C
Fixes #12 updated the URI for downloading versions greater than go1.2