devfeel/dotweb

SetMethodNotAllowedHandle时修改StatusCode无效

dotqi opened this issue · 1 comments

dotqi commented

App.SetMethodNotAllowedHandle(func(ctx dotweb.Context) {
ctx.Redirect(301, "/")
})
当 设置SetMethodNotAllowedHandle时,系统并不能按预定的进行跳转。而是直接返回405错误。

Now it was fixed on version 1.7.6