• Brad Fitzpatrick's avatar
    net/http: clarify client return values in docs · e1d9fcd2
    Brad Fitzpatrick authored
    Also, fixes one violation found during testing where both
    response and error could be non-nil when a CheckRedirect test
    failed.  This is arguably a minor API (behavior, not
    signature) change, but it wasn't documented either way and was
    inconsistent & non-Go like.  Any code depending on the old
    behavior was wrong anyway.
    
    R=adg, rsc
    CC=golang-dev
    https://golang.org/cl/6307088
    e1d9fcd2
client_test.go 12.2 KB