]> Cypherpunks repositories - gostls13.git/commit
http: avoid panic caused by nil URL
authorAnthony Martin <ality@pbrane.org>
Sat, 15 Oct 2011 00:09:38 +0000 (17:09 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 15 Oct 2011 00:09:38 +0000 (17:09 -0700)
commitb5077f82fade43dcfcc40648ffd65dc98a1515df
treee99676cd6ba1d161bf00f3dc532d3bd306bcb71f
parentc5b3a4fb074e7a476a2841ba7ca5161636b7d9e9
http: avoid panic caused by nil URL

The current code will panic if an invalid
request (one with a nil URL) is passed to
the doFollowingRedirects function.

Also, remove a redundant nil Header check.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5270046
src/pkg/http/client.go