]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix bug in remote package discovery
authorRuss Cox <rsc@golang.org>
Tue, 25 Feb 2014 16:22:22 +0000 (11:22 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 25 Feb 2014 16:22:22 +0000 (11:22 -0500)
commit441c4bb939666555f697c1d5abf30b2f78528962
tree86bfb02076e141e864ebc8fc7ddcb12cc3dc7c33
parentfd4b4b56c4a1fd3426fc9ab4c36ec1b270089d29
cmd/go: fix bug in remote package discovery

The parser was assuming it would find <body> or </head>.
If the entire response is just <meta> tags, it finds EOF and
treats that as an error. It's not.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/68520044
src/cmd/go/discovery.go
src/cmd/go/pkg_test.go