Skip to content

Commit

Permalink
fix: fix http redirect code (hootrhino#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
lion-brave authored May 10, 2023
1 parent f55786b commit ae23539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/http_server/http_api_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func configHttpServer(hh *HttpApiServer) {
c.JSON(200, Error500(err1crash))
}))
hh.ginEngine.NoRoute(func(c *gin.Context) {
c.Redirect(200, "/")
c.Redirect(302, "/")
})
if hh.dbPath == "" {
hh.InitDb(_DEFAULT_DB_PATH)
Expand Down

0 comments on commit ae23539

Please sign in to comment.