aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshogo-ma <Choroma194@gmail.com>2018-04-21 16:46:27 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-04-22 17:30:54 +0000
commit15095be9fbe726d4a3ef43b68d2fbc83e6484ded (patch)
tree4b7c82189b3c155f7bd690f6cdf0429d8354c5a5 /src
parent20c98dc396d1cb8c3a9776f1d330feed2f2a132a (diff)
downloadgo-15095be9fbe726d4a3ef43b68d2fbc83e6484ded.tar.xz
net/http: remove unnecessary parameter type
Change-Id: I954ca86c142e81c03ec867d10997617d1643b35d GitHub-Last-Rev: 4ffcc780f16f20ad3a531638d4cef1c7d04da0bc GitHub-Pull-Request: golang/go#24987 Reviewed-on: https://go-review.googlesource.com/108675 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/net/http/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/client.go b/src/net/http/client.go
index a71d70818a..a6f67f0ef4 100644
--- a/src/net/http/client.go
+++ b/src/net/http/client.go
@@ -718,7 +718,7 @@ func defaultCheckRedirect(req *Request, via []*Request) error {
//
// See the Client.Do method documentation for details on how redirects
// are handled.
-func Post(url string, contentType string, body io.Reader) (resp *Response, err error) {
+func Post(url, contentType string, body io.Reader) (resp *Response, err error) {
return DefaultClient.Post(url, contentType, body)
}
@@ -733,7 +733,7 @@ func Post(url string, contentType string, body io.Reader) (resp *Response, err e
//
// See the Client.Do method documentation for details on how redirects
// are handled.
-func (c *Client) Post(url string, contentType string, body io.Reader) (resp *Response, err error) {
+func (c *Client) Post(url, contentType string, body io.Reader) (resp *Response, err error) {
req, err := NewRequest("POST", url, body)
if err != nil {
return nil, err