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

https -> http redirect loses path #531

Closed
dwijnand opened this issue Nov 16, 2016 · 3 comments
Closed

https -> http redirect loses path #531

dwijnand opened this issue Nov 16, 2016 · 3 comments
Labels

Comments

@dwijnand
Copy link
Member

dwijnand commented Nov 16, 2016

Go to https://www.scala-lang.org/files/archive/scala-2.12.0.tgz and you won't download the tarball.

Or here's the curl transcript:

$ curl -Lvs -o /dev/null https://www.scala-lang.org/files/archive/scala-2.12.0.tgz
*   Trying 128.178.154.159...
* Connected to www.scala-lang.org (128.178.154.159) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate: *.scala-lang.org
* Server certificate: Gandi Standard SSL CA 2
* Server certificate: USERTrust RSA Certification Authority
* Server certificate: AddTrust External CA Root
> GET /files/archive/scala-2.12.0.tgz HTTP/1.1
> Host: www.scala-lang.org
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Wed, 16 Nov 2016 01:32:33 GMT
< Server: Apache
< Location: http://www.scala-lang.org
< Content-Length: 302
< Content-Type: text/html; charset=iso-8859-1
<
* Ignoring the response-body
{ [302 bytes data]
* Connection #0 to host www.scala-lang.org left intact
* Issue another request to this URL: 'http://www.scala-lang.org'
* Rebuilt URL to: http://www.scala-lang.org/
* Found bundle for host www.scala-lang.org: 0x7fa37ac10170
*   Trying 128.178.154.159...
* Connected to www.scala-lang.org (128.178.154.159) port 80 (#1)
> GET / HTTP/1.1
> Host: www.scala-lang.org
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 16 Nov 2016 01:32:33 GMT
< Server: Apache
< Last-Modified: Sat, 12 Nov 2016 18:05:12 GMT
< ETag: "1179a-5411e72afe53a"
< Accept-Ranges: bytes
< Content-Length: 71578
< Vary: Accept-Encoding
< Content-Type: text/html
<
{ [3864 bytes data]
* Connection #1 to host www.scala-lang.org left intact

Note when it redirects, there's no path anywhere, and it ends up returning text/html (the homepage).

@SethTisue
Copy link
Member

@fsalvi is something that might be addressable at your end...?

@fsalvi
Copy link
Contributor

fsalvi commented Nov 17, 2016

It's ok now.

@fsalvi fsalvi closed this as completed Nov 17, 2016
@SethTisue
Copy link
Member

marvelous, thank you Fabien!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants