Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
fde9bbeb
Commit
fde9bbeb
authored
Feb 01, 2016
by
MathiasB
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basicauth: fixed 'go vet' printing function value
parent
a8c8b483
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
middleware/basicauth/basicauth_test.go
middleware/basicauth/basicauth_test.go
+1
-1
No files found.
middleware/basicauth/basicauth_test.go
View file @
fde9bbeb
...
@@ -139,7 +139,7 @@ md5:$apr1$l42y8rex$pOA2VJ0x/0TwaFeAF9nX61`
...
@@ -139,7 +139,7 @@ md5:$apr1$l42y8rex$pOA2VJ0x/0TwaFeAF9nX61`
if
rule
.
Password
,
err
=
GetHtpasswdMatcher
(
filename
,
rule
.
Username
,
siteRoot
);
err
!=
nil
{
if
rule
.
Password
,
err
=
GetHtpasswdMatcher
(
filename
,
rule
.
Username
,
siteRoot
);
err
!=
nil
{
t
.
Fatalf
(
"GetHtpasswdMatcher(%q, %q): %v"
,
htfh
.
Name
(),
rule
.
Username
,
err
)
t
.
Fatalf
(
"GetHtpasswdMatcher(%q, %q): %v"
,
htfh
.
Name
(),
rule
.
Username
,
err
)
}
}
t
.
Logf
(
"%d. username=%q
password=%v"
,
i
,
rule
.
Username
,
rule
.
Password
)
t
.
Logf
(
"%d. username=%q
"
,
i
,
rule
.
Username
)
if
!
rule
.
Password
(
htpasswdPasswd
)
||
rule
.
Password
(
htpasswdPasswd
+
"!"
)
{
if
!
rule
.
Password
(
htpasswdPasswd
)
||
rule
.
Password
(
htpasswdPasswd
+
"!"
)
{
t
.
Errorf
(
"%d (%s) password does not match."
,
i
,
rule
.
Username
)
t
.
Errorf
(
"%d (%s) password does not match."
,
i
,
rule
.
Username
)
}
}
...
...
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