mirror of
https://github.com/golang/go
synced 2024-11-21 20:44:39 -07:00
http: client_test nil pointer fix
Fixes #893. R=rsc CC=golang-dev https://golang.org/cl/1687045
This commit is contained in:
parent
4f340f5051
commit
d3c3c15b17
@ -32,7 +32,7 @@ func TestClient(t *testing.T) {
|
||||
func TestClientHead(t *testing.T) {
|
||||
r, err := Head("http://www.google.com/robots.txt")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, ok := r.Header["Last-Modified"]; !ok {
|
||||
t.Error("Last-Modified header not found.")
|
||||
|
Loading…
Reference in New Issue
Block a user