Skip to content

Commit

Permalink
Update Caddy's import path, fix: #4
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Jul 3, 2019
1 parent 9fc9809 commit d21039f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions authz.go
Expand Up @@ -3,9 +3,9 @@ package authz
import (
"net/http"

"github.com/caddyserver/caddy"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
"github.com/casbin/casbin"
"github.com/mholt/caddy"
"github.com/mholt/caddy/caddyhttp/httpserver"
)

// Authorizer is a middleware for filtering clients based on their ip or country's ISO code.
Expand Down
2 changes: 1 addition & 1 deletion authz_test.go
Expand Up @@ -5,8 +5,8 @@ import (
"net/http/httptest"
"testing"

"github.com/caddyserver/caddy/caddyhttp/httpserver"
"github.com/casbin/casbin"
"github.com/mholt/caddy/caddyhttp/httpserver"
)

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

1 comment on commit d21039f

@hsluoyz
Copy link
Member Author

@hsluoyz hsluoyz commented on d21039f Jul 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @whalehub , new release v1.0.2 is published: https://github.com/casbin/caddy-authz/releases

Please sign in to comment.