diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-04-25 13:54:48 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-04-25 13:54:48 -0600 |
commit | 2d056fbe66849f041a233a0d961639fae3835cbb (patch) | |
tree | dc78505933861e01f615470ffc1dd56a852da0b8 /modules/caddyhttp/staticfiles | |
parent | 545f28008e0175491af030f8689cab2112fda9ed (diff) |
Initial commit of Storage, TLS, and automatic HTTPS implementations
Diffstat (limited to 'modules/caddyhttp/staticfiles')
-rw-r--r-- | modules/caddyhttp/staticfiles/staticfiles.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/staticfiles/staticfiles.go b/modules/caddyhttp/staticfiles/staticfiles.go index d1a7a7e..2a6fe37 100644 --- a/modules/caddyhttp/staticfiles/staticfiles.go +++ b/modules/caddyhttp/staticfiles/staticfiles.go @@ -10,7 +10,7 @@ import ( func init() { caddy2.RegisterModule(caddy2.Module{ Name: "http.responders.static_files", - New: func() (interface{}, error) { return &StaticFiles{}, nil }, + New: func() (interface{}, error) { return new(StaticFiles), nil }, }) } @@ -25,4 +25,4 @@ func (sf StaticFiles) ServeHTTP(w http.ResponseWriter, r *http.Request) error { } // Interface guard -var _ caddyhttp.Handler = StaticFiles{} +var _ caddyhttp.Handler = (*StaticFiles)(nil) |