mirror of
https://github.com/golang/go
synced 2024-11-17 13:04:54 -07:00
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 <emm.odeke@gmail.com> Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
d467f3bbc9
commit
36b815edd6
@ -216,7 +216,7 @@ func send(ireq *Request, rt RoundTripper, deadline time.Time) (resp *Response, d
|
|||||||
|
|
||||||
if req.RequestURI != "" {
|
if req.RequestURI != "" {
|
||||||
req.closeBody()
|
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
|
// forkReq forks req into a shallow clone of ireq the first
|
||||||
|
Loading…
Reference in New Issue
Block a user