Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KIT-CA
websearch
Commits
55ad1bcf
Commit
55ad1bcf
authored
Apr 23, 2017
by
Heiko Reese
Browse files
removed old comments and code
parent
6a1d17d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ca-websearch/daemon.go
View file @
55ad1bcf
...
...
@@ -163,9 +163,7 @@ func main() {
log
.
Println
(
ccache
.
Len
(),
"certificates have been loaded into the certificate cache."
)
// handle Validity change
//log.Println("Starting filewatcher for validity changes")
AllWatchers
=
CreateAllWatchers
(
certRepoDir
)
//log.Printf("Read %d initial validity states", ValidityWatcher.Len())
// create http interface
r
:=
mux
.
NewRouter
()
...
...
@@ -213,7 +211,7 @@ func main() {
r
.
PathPrefix
(
"/"
)
.
Handler
(
http
.
FileServer
(
http
.
Dir
(
webrootDir
)))
// DEBUG: add notfound handler
// DEBUG: add notfound handler
r
.
NotFoundHandler
=
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
requestDump
,
err
:=
httputil
.
DumpRequest
(
r
,
true
)
if
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