main
lzf 2025-07-11 17:11:28 +08:00
parent 86b2a17868
commit c255a257c3
1 changed files with 4 additions and 1 deletions

View File

@ -216,7 +216,10 @@ func (r *Request) Do(method, rawUrl string) (*Response, error) {
req.URL.RawQuery = query.Encode()
if r.contentType != "" {
req.Header.Set("Content-Type", r.contentType)
}
for k := range r.header {
req.Header.Set(k, r.header.Get(k))
}