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
Łukasz Nowak
caddy
Commits
16bd63fc
Commit
16bd63fc
authored
Oct 13, 2015
by
Zac Bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed my debug prints
parent
e158cda0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
middleware/basicauth/basicauth.go
middleware/basicauth/basicauth.go
+0
-1
middleware/middleware_test.go
middleware/middleware_test.go
+0
-2
No files found.
middleware/basicauth/basicauth.go
View file @
16bd63fc
...
...
@@ -87,7 +87,6 @@ var (
)
func
GetHtpasswdMatcher
(
filename
,
username
,
siteRoot
string
)
(
PasswordMatcher
,
error
)
{
fmt
.
Printf
(
"ZBZB joining '%s' and '%s' and trying to open
\n
"
,
siteRoot
,
filename
)
filename
=
filepath
.
Join
(
siteRoot
,
filename
)
htpasswordsMu
.
Lock
()
if
htpasswords
==
nil
{
...
...
middleware/middleware_test.go
View file @
16bd63fc
package
middleware
import
(
"fmt"
"net/http"
"testing"
)
...
...
@@ -26,7 +25,6 @@ func TestIndexfile(t *testing.T) {
}
for
i
,
test
:=
range
tests
{
actualFilePath
,
actualBoolValue
:=
IndexFile
(
test
.
rootDir
,
test
.
fpath
,
test
.
indexFiles
)
fmt
.
Println
(
"ZBZB IndexFile returned"
,
actualFilePath
,
","
,
actualBoolValue
)
if
actualBoolValue
==
true
&&
test
.
shouldErr
{
t
.
Errorf
(
"Test %d didn't error, but it should have"
,
i
)
}
else
if
actualBoolValue
!=
true
&&
!
test
.
shouldErr
{
...
...
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