Commit d3c3c15b authored by Andrew Gerrand's avatar Andrew Gerrand

http: client_test nil pointer fix

Fixes #893.

R=rsc
CC=golang-dev
https://golang.org/cl/1687045
parent 4f340f50
......@@ -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.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment