From 36b815edd6cd23d5aabdb488c24db2033bbdeea2 Mon Sep 17 00:00:00 2001 From: d-tsuji Date: Sat, 21 Mar 2020 20:40:01 +0900 Subject: [PATCH] net/http: remove period at end of error message Change-Id: I4ff5411543c200344babb754fc089e10e29e0fe4 Reviewed-on: https://go-review.googlesource.com/c/go/+/224697 Reviewed-by: Emmanuel Odeke Run-TryBot: Emmanuel Odeke TryBot-Result: Gobot Gobot --- src/net/http/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/http/client.go b/src/net/http/client.go index ec24516833c..638ff500a4a 100644 --- a/src/net/http/client.go +++ b/src/net/http/client.go @@ -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