mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net/http: remove unnecessary parameter type
Change-Id: I954ca86c142e81c03ec867d10997617d1643b35d
GitHub-Last-Rev: 4ffcc780f1
GitHub-Pull-Request: golang/go#24987
Reviewed-on: https://go-review.googlesource.com/108675
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
20c98dc396
commit
15095be9fb
1 changed files with 2 additions and 2 deletions
|
|
@ -718,7 +718,7 @@ func defaultCheckRedirect(req *Request, via []*Request) error {
|
||||||
//
|
//
|
||||||
// See the Client.Do method documentation for details on how redirects
|
// See the Client.Do method documentation for details on how redirects
|
||||||
// are handled.
|
// 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)
|
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
|
// See the Client.Do method documentation for details on how redirects
|
||||||
// are handled.
|
// 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)
|
req, err := NewRequest("POST", url, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue