Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
6fc9d227
Unverified
Commit
6fc9d227
authored
Sep 05, 2024
by
Tobias Heinze
Committed by
GitHub
Sep 05, 2024
Browse files
server: fix blob download when receiving a 200 response (#6656)
parent
f27c00d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/download.go
server/download.go
+1
-1
No files found.
server/download.go
View file @
6fc9d227
...
@@ -256,7 +256,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis
...
@@ -256,7 +256,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis
continue
continue
}
}
defer
resp
.
Body
.
Close
()
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
nil
,
fmt
.
Errorf
(
"unexpected status code %d"
,
resp
.
StatusCode
)
}
}
return
resp
.
Location
()
return
resp
.
Location
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment