]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: remove unnecessary parameter type
authorshogo-ma <Choroma194@gmail.com>
Sat, 21 Apr 2018 16:46:27 +0000 (16:46 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 22 Apr 2018 17:30:54 +0000 (17:30 +0000)
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>
src/net/http/client.go

index a71d70818ab1b2c07fa9b927a9bb6bb4d5d89417..a6f67f0ef4106b5bcb0abc716689e9b4e7f0db5b 100644 (file)
@@ -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