Commit 01aca02e authored by Matt Holt's avatar Matt Holt

Merge pull request #129 from tw4452852/rename_internal

internal: rename middleware's package name from `internal` to `inner`
parents 5cdfa0aa 90921a9d
......@@ -2,7 +2,7 @@ package setup
import (
"github.com/mholt/caddy/middleware"
"github.com/mholt/caddy/middleware/internal"
"github.com/mholt/caddy/middleware/inner"
)
// Internal configures a new Internal middleware instance.
......@@ -13,7 +13,7 @@ func Internal(c *Controller) (middleware.Middleware, error) {
}
return func(next middleware.Handler) middleware.Handler {
return internal.Internal{Next: next, Paths: paths}
return inner.Internal{Next: next, Paths: paths}
}, nil
}
......
// Package internal provides a simple middleware that (a) prevents access
// Package inner provides a simple middleware that (a) prevents access
// to internal locations and (b) allows to return files from internal location
// by setting a special header, e.g. in a proxy response.
package internal
package inner
import (
"net/http"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment