We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46bcca7 commit c4c420eCopy full SHA for c4c420e
download.go
@@ -269,6 +269,7 @@ func shouldRetryMediaDownload(err error) bool {
269
var netErr net.Error
270
var httpErr DownloadHTTPError
271
return errors.As(err, &netErr) ||
272
+ strings.HasPrefix(err.Error(), "stream error:") || // hacky check for http2 errors
273
(errors.As(err, &httpErr) && retryafter.Should(httpErr.StatusCode, true))
274
}
275
0 commit comments