]> Cypherpunks repositories - gostls13.git/commit
cmd/go: for go get -insecure, do not fall back to HTTP for non-200 responses
authorRuss Cox <rsc@golang.org>
Thu, 17 Dec 2015 05:37:09 +0000 (00:37 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 17 Dec 2015 20:28:14 +0000 (20:28 +0000)
commit2f08bd96a0f291450c0f8cd41741fa475309cfc4
treecaba2de3afc1f153280e6b0050eb58b8e39e44e3
parenta227351b622856f1fbc76d77cd646644a975f3e7
cmd/go: for go get -insecure, do not fall back to HTTP for non-200 responses

Since we allow non-200 responses from HTTPS in normal operation,
it seems odd to reject them in -insecure operation.

Fixes #13037 (again).

Change-Id: Ie232f7544ab192addfad407525888db6b967befe
Reviewed-on: https://go-review.googlesource.com/17945
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/http.go