bugfix: API调用报403错误

pull/21/merge
qiang.ou 2017-11-17 13:42:02 +08:00 committed by GitHub
parent 8720c18654
commit e9b475a230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ func urlAuth(ctx *macaron.Context, sess session.Store) {
"/user/login",
"/user/logout",
"/user/editMyPassword",
"/api",
}
uri := strings.TrimSpace(ctx.Req.URL.Path)
uri = strings.TrimRight(uri, "/")