Skip to content

Commit d21039f

Browse files
committed
Update Caddy's import path, fix: #4
1 parent 9fc9809 commit d21039f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

authz.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package authz
33
import (
44
"net/http"
55

6+
"github.com/caddyserver/caddy"
7+
"github.com/caddyserver/caddy/caddyhttp/httpserver"
68
"github.com/casbin/casbin"
7-
"github.com/mholt/caddy"
8-
"github.com/mholt/caddy/caddyhttp/httpserver"
99
)
1010

1111
// Authorizer is a middleware for filtering clients based on their ip or country's ISO code.

authz_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"net/http/httptest"
66
"testing"
77

8+
"github.com/caddyserver/caddy/caddyhttp/httpserver"
89
"github.com/casbin/casbin"
9-
"github.com/mholt/caddy/caddyhttp/httpserver"
1010
)
1111

1212
func testRequest(t *testing.T, handler Authorizer, user string, path string, method string, code int) {

0 commit comments

Comments
 (0)