Merge pull request #3253 from cli/http2-upload-retry
Allow retrying HTTP/2 uploads for release assets
This commit is contained in:
commit
84f0f59779
1 changed files with 1 additions and 0 deletions
|
|
@ -170,6 +170,7 @@ func uploadAsset(httpClient *http.Client, uploadURL string, asset AssetForUpload
|
|||
}
|
||||
req.ContentLength = asset.Size
|
||||
req.Header.Set("Content-Type", asset.MIMEType)
|
||||
req.GetBody = asset.Open
|
||||
|
||||
resp, err := httpClient.Do(req)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue