1
0
mirror of https://github.com/golang/go synced 2024-11-12 05:40:22 -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:
Andrew Gerrand 2010-06-30 18:57:27 +10:00
parent 4f340f5051
commit d3c3c15b17

View File

@ -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.")