Browse Source
Merge pull request #9 from toranger/master
remove the content-type when the request body is empty
tags/v0.7.8
toranger
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
2 deletions
-
cos.go
|
|
@ -134,8 +134,6 @@ func (c *Client) newRequest(ctx context.Context, baseURL *url.URL, uri, method s |
|
|
|
reader = bytes.NewReader(b) |
|
|
|
contentMD5 = base64.StdEncoding.EncodeToString(calMD5Digest(b)) |
|
|
|
} |
|
|
|
} else { |
|
|
|
contentType = contentTypeXML |
|
|
|
} |
|
|
|
|
|
|
|
req, err = http.NewRequest(method, urlStr, reader) |
|
|
|