update
parent
86b2a17868
commit
c255a257c3
|
@ -216,7 +216,10 @@ func (r *Request) Do(method, rawUrl string) (*Response, error) {
|
|||
|
||||
req.URL.RawQuery = query.Encode()
|
||||
|
||||
req.Header.Set("Content-Type", r.contentType)
|
||||
if r.contentType != "" {
|
||||
req.Header.Set("Content-Type", r.contentType)
|
||||
}
|
||||
|
||||
for k := range r.header {
|
||||
req.Header.Set(k, r.header.Get(k))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue