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
7b61eba4
Commit
7b61eba4
authored
Aug 08, 2024
by
Jitang Lei
Browse files
server/download.go: Fix a typo in log
Signed-off-by:
Jitang Lei
<
leijitang@outlook.com
>
parent
5b3a21b5
Changes
1
Show 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 @
7b61eba4
...
@@ -235,7 +235,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis
...
@@ -235,7 +235,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis
newOpts
.
CheckRedirect
=
func
(
req
*
http
.
Request
,
via
[]
*
http
.
Request
)
error
{
newOpts
.
CheckRedirect
=
func
(
req
*
http
.
Request
,
via
[]
*
http
.
Request
)
error
{
if
len
(
via
)
>
10
{
if
len
(
via
)
>
10
{
return
errors
.
New
(
"maxium redirects exceeded (10) for directURL"
)
return
errors
.
New
(
"maxi
m
um redirects exceeded (10) for directURL"
)
}
}
// if the hostname is the same, allow the redirect
// if the hostname is the same, allow the redirect
...
...
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