diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-10-14 10:50:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 22:50:23 -0400 |
commit | d47798ccc72236fa239834583ae8367a16ab3fbe (patch) | |
tree | 87b6bdcc1bafe828972d63a3aa55f000a5e2c019 /modules/web | |
parent | bd14c40461042bd2bc5570d5f7cb9dfddda22f8a (diff) | |
download | gitea-d47798ccc72236fa239834583ae8367a16ab3fbe.tar.gz gitea-d47798ccc72236fa239834583ae8367a16ab3fbe.zip |
Upgrade chi to v5 (#17298)
Diffstat (limited to 'modules/web')
-rw-r--r-- | modules/web/route.go | 2 | ||||
-rw-r--r-- | modules/web/route_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/web/route.go b/modules/web/route.go index 9b08510264..ad9cea8bb6 100644 --- a/modules/web/route.go +++ b/modules/web/route.go @@ -15,7 +15,7 @@ import ( "code.gitea.io/gitea/modules/web/middleware" "gitea.com/go-chi/binding" - "github.com/go-chi/chi" + chi "github.com/go-chi/chi/v5" ) // Wrap converts all kinds of routes to standard library one diff --git a/modules/web/route_test.go b/modules/web/route_test.go index 03955f0f2d..a8470fec94 100644 --- a/modules/web/route_test.go +++ b/modules/web/route_test.go @@ -10,7 +10,7 @@ import ( "net/http/httptest" "testing" - "github.com/go-chi/chi" + chi "github.com/go-chi/chi/v5" "github.com/stretchr/testify/assert" ) |