aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-08-08 19:58:22 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-08-08 19:58:22 +0100
commit66a7d51577c83da7cc3cf385a188799fe885cd3a (patch)
tree865d6fb9bbb2498f5e9b454d83df1fafbff4a1ad
parentd9f97c34439be2d484d27eeb8454cf186e6e5cf7 (diff)
Don't use local files
-rw-r--r--cmd/cashierd/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cashierd/main.go b/cmd/cashierd/main.go
index b530af9..b92bd9e 100644
--- a/cmd/cashierd/main.go
+++ b/cmd/cashierd/main.go
@@ -360,7 +360,7 @@ func main() {
r.Methods("GET").Path("/revoked").Handler(appHandler{ctx, listRevokedCertsHandler})
r.Methods("POST").Path("/admin/revoke").Handler(CSRF(appHandler{ctx, revokeCertHandler}))
r.Methods("GET").Path("/admin/certs").Handler(CSRF(appHandler{ctx, listAllCertsHandler}))
- r.PathPrefix("/").Handler(http.FileServer(static.FS(true)))
+ r.PathPrefix("/").Handler(http.FileServer(static.FS(false)))
logfile := os.Stderr
if config.Server.HTTPLogFile != "" {
logfile, err = os.OpenFile(config.Server.HTTPLogFile, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0660)