Skip to content

Commit

Permalink
fix: newrequest parameters error
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrnicolase committed Oct 9, 2020
1 parent c4a60ee commit c41d4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Send(url, token string, body io.Reader) ([]byte, error) {
// SendContext 携带context的发送请求
func SendContext(ctx context.Context, url, token string, body io.Reader) ([]byte, error) {
client := newClient()
req, err := newRequest(ctx, `POST`, url, body)
req, err := newRequest(ctx, url, token, body)
if nil != err {
return nil, err
}
Expand Down

0 comments on commit c41d4cc

Please sign in to comment.