]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: remove period at end of error message
authord-tsuji <dram.dt.shonan@gmail.com>
Sat, 21 Mar 2020 11:40:01 +0000 (20:40 +0900)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Sun, 22 Mar 2020 00:10:27 +0000 (00:10 +0000)
Change-Id: I4ff5411543c200344babb754fc089e10e29e0fe4
Reviewed-on: https://go-review.googlesource.com/c/go/+/224697
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/net/http/client.go

index ec24516833cf4c033fcde67512172625cea9e97d..638ff500a4a0b00d1bc8e36e9a316ca92f4fb878 100644 (file)
@@ -216,7 +216,7 @@ func send(ireq *Request, rt RoundTripper, deadline time.Time) (resp *Response, d
 
        if req.RequestURI != "" {
                req.closeBody()
-               return nil, alwaysFalse, errors.New("http: Request.RequestURI can't be set in client requests.")
+               return nil, alwaysFalse, errors.New("http: Request.RequestURI can't be set in client requests")
        }
 
        // forkReq forks req into a shallow clone of ireq the first