diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/networking/waitron/staticfiles-directory.patch')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/tools/networking/waitron/staticfiles-directory.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/networking/waitron/staticfiles-directory.patch b/infra/libkookie/nixpkgs/pkgs/tools/networking/waitron/staticfiles-directory.patch new file mode 100644 index 000000000000..b1096487fac1 --- /dev/null +++ b/infra/libkookie/nixpkgs/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) + } + |