Working Caddy
This commit is contained in:
6 files changed
+39
-11
No files matched your search
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
"github.com/hacdias/filemanager"
|
||||
"github.com/hacdias/filemanager/caddy/parser"
|
||||
h "github.com/hacdias/filemanager/http"
|
||||
"github.com/mholt/caddy"
|
||||
"github.com/mholt/caddy/caddyhttp/httpserver"
|
||||
)
|
||||
@@ -32,7 +33,7 @@ func (f plugin) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
|
||||
continue
|
||||
}
|
||||
|
||||
f.Configs[i].ServeHTTP(w, r)
|
||||
h.Handler(f.Configs[i]).ServeHTTP(w, r)
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user