go-musicfox: 4.5.7 -> 4.6.0 (#364326)
[NixPkgs.git] / pkgs / by-name / wa / waitron / staticfiles-directory.patch
blobb1096487fac1f65c381c6d7ba8c5a2e07996d632
1 diff --git a/main.go b/main.go
2 index 4046911..a126bae 100644
3 --- a/main.go
4 +++ b/main.go
5 @@ -411,7 +411,7 @@ func main() {
7 if configuration.StaticFilesPath != "" {
8 fs := http.FileServer(http.Dir(configuration.StaticFilesPath))
9 - r.Handler("GET", "/files/:filename", http.StripPrefix("/files/", fs))
10 + r.Handler("GET", "/files/*filepath", http.StripPrefix("/files/", fs))
11 log.Println("Serving static files from " + configuration.StaticFilesPath)