Merge pull request #3253 from cli/http2-upload-retry

Allow retrying HTTP/2 uploads for release assets
This commit is contained in:
Mislav Marohnić 2021-03-19 16:10:02 +01:00 committed by GitHub
commit 84f0f59779
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {