Descriptionhttp: 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.
Patch Set 1 #Patch Set 2 : diff -r 6e34838772f1 https://code.google.com/p/go/ #Patch Set 3 : diff -r 6e34838772f1 https://code.google.com/p/go/ #Patch Set 4 : diff -r 6e34838772f1 https://code.google.com/p/go/ #MessagesTotal messages: 4
|