summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/staticresp_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/staticresp_test.go')
-rw-r--r--modules/caddyhttp/staticresp_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddyhttp/staticresp_test.go b/modules/caddyhttp/staticresp_test.go
index ac868d8..45c5fec 100644
--- a/modules/caddyhttp/staticresp_test.go
+++ b/modules/caddyhttp/staticresp_test.go
@@ -7,7 +7,7 @@ import (
"net/http/httptest"
"testing"
- "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy"
)
func TestStaticResponseHandler(t *testing.T) {
@@ -44,8 +44,8 @@ func TestStaticResponseHandler(t *testing.T) {
func fakeRequest() *http.Request {
r, _ := http.NewRequest("GET", "/", nil)
- repl := caddy2.NewReplacer()
- ctx := context.WithValue(r.Context(), caddy2.ReplacerCtxKey, repl)
+ repl := caddy.NewReplacer()
+ ctx := context.WithValue(r.Context(), caddy.ReplacerCtxKey, repl)
r = r.WithContext(ctx)
return r
}