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
c468b114
Commit
c468b114
authored
Sep 10, 2015
by
Alexander Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix format call in tests
Signed-off-by:
Alexander Morozov
<
lk4d4@docker.com
>
parent
d96bd526
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
config/setup/basicauth_test.go
config/setup/basicauth_test.go
+1
-1
No files found.
config/setup/basicauth_test.go
View file @
c468b114
...
@@ -40,7 +40,7 @@ md5:$apr1$l42y8rex$pOA2VJ0x/0TwaFeAF9nX61`
...
@@ -40,7 +40,7 @@ md5:$apr1$l42y8rex$pOA2VJ0x/0TwaFeAF9nX61`
var
skipHtpassword
bool
var
skipHtpassword
bool
htfh
,
err
:=
ioutil
.
TempFile
(
""
,
"basicauth-"
)
htfh
,
err
:=
ioutil
.
TempFile
(
""
,
"basicauth-"
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Logf
(
"Error creating temp file (%v), will skip htpassword test"
)
t
.
Logf
(
"Error creating temp file (%v), will skip htpassword test"
,
err
)
skipHtpassword
=
true
skipHtpassword
=
true
}
else
{
}
else
{
if
_
,
err
=
htfh
.
Write
([]
byte
(
htpasswdFile
));
err
!=
nil
{
if
_
,
err
=
htfh
.
Write
([]
byte
(
htpasswdFile
));
err
!=
nil
{
...
...
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