aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/networking/waitron/staticfiles-directory.patch
blob: b1096487fac1f65c381c6d7ba8c5a2e07996d632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.go b/main.go
index 4046911..a126bae 100644
--- a/main.go
+++ b/main.go
@@ -411,7 +411,7 @@ func main() {
 
 	if configuration.StaticFilesPath != "" {
 		fs := http.FileServer(http.Dir(configuration.StaticFilesPath))
-		r.Handler("GET", "/files/:filename", http.StripPrefix("/files/", fs))
+		r.Handler("GET", "/files/*filepath", http.StripPrefix("/files/", fs))
 		log.Println("Serving static files from " + configuration.StaticFilesPath)
 	}