summary refs log tree commit diff
path: root/pkgs/tools/networking/waitron/staticfiles-directory.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/waitron/staticfiles-directory.patch')
-rw-r--r--pkgs/tools/networking/waitron/staticfiles-directory.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/networking/waitron/staticfiles-directory.patch b/pkgs/tools/networking/waitron/staticfiles-directory.patch
new file mode 100644
index 00000000000..b1096487fac
--- /dev/null
+++ b/pkgs/tools/networking/waitron/staticfiles-directory.patch
@@ -0,0 +1,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)
+ 	}
+