From 043eb1d9e5db456b9b78c0423cb44716fc81a932 Mon Sep 17 00:00:00 2001 From: dev Date: Tue, 14 May 2019 10:35:41 -0400 Subject: move internal packages to pkg folder and update reverse proxy * set automatic https error type for cert-magic failures * add state to onload and unload methods * update reverse proxy to use Provision() and Cleanup() --- internal/caddyscript/matcherenv.go | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 internal/caddyscript/matcherenv.go (limited to 'internal/caddyscript/matcherenv.go') diff --git a/internal/caddyscript/matcherenv.go b/internal/caddyscript/matcherenv.go deleted file mode 100644 index c6c8c0e..0000000 --- a/internal/caddyscript/matcherenv.go +++ /dev/null @@ -1,18 +0,0 @@ -package caddyscript - -import ( - "net/http" - - caddyscript "bitbucket.org/lightcodelabs/caddy2/internal/caddyscript/lib" - "go.starlark.net/starlark" -) - -// MatcherEnv sets up the global context for the matcher caddyscript environment. -func MatcherEnv(r *http.Request) starlark.StringDict { - env := make(starlark.StringDict) - env["req"] = caddyscript.HTTPRequest{Req: r} - env["time"] = caddyscript.Time{} - env["regexp"] = caddyscript.Regexp{} - - return env -} -- cgit v1.2.3