From 6fc9d2270786a76952a5d55ec75a9f9dcde73e26 Mon Sep 17 00:00:00 2001 From: Tobias Heinze Date: Thu, 5 Sep 2024 19:48:26 +0200 Subject: [PATCH] server: fix blob download when receiving a 200 response (#6656) --- server/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/download.go b/server/download.go index 02f7ae88..a3b53189 100644 --- a/server/download.go +++ b/server/download.go @@ -256,7 +256,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis continue } defer resp.Body.Close() - if resp.StatusCode != http.StatusTemporaryRedirect { + if resp.StatusCode != http.StatusTemporaryRedirect && resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("unexpected status code %d", resp.StatusCode) } return resp.Location()