Skip to content

Commit

Permalink
fix set Header
Browse files Browse the repository at this point in the history
  • Loading branch information
eyasliu authored Aug 12, 2019
1 parent c48a6c2 commit b223843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (r Request) Do(method, url string, query, body, file interface{}) (*Respons
Errs: []error{errors.New("url is empty")},
}, fmt.Errorf("http url can't empty")
}
r.SuperAgent = r.SuperAgent.CustomMethod(method, r.baseURL+url)
// r.SuperAgent = r.SuperAgent.CustomMethod(method, r.baseURL+url)
r.SuperAgent.Method = strings.ToUpper(method)
r.SuperAgent.Url = r.baseURL + url
r.SuperAgent.Errors = nil
Expand Down

0 comments on commit b223843

Please sign in to comment.