1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-05 01:40:55 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
Yunkai Zhang
e3810b599d Fix regression caused by commit ad65479
Commit ad65479 will cause "Method Not Allow" in preflight response
when enable CORS plugin.

The root cause is that CORS plugin didn't generate http output after applied
commit ad65479, so the value of `ctx.ResponseWriter.Started` will be keep
`false`, and then later filter chains will be go on to run when CORS filter
finished.

This path will both fix "Method Not Allow" and the original bug
"multiple response.WriteHeader calls".

Signed-off-by: Yunkai Zhang <qiushu.zyk@taobao.com>
2016-01-26 23:27:26 +08:00
astaxie
90d1349665 fix typo 2016-01-17 23:48:17 +08:00
Vitaly Velikodny
48fd9675ad Refactoring: Move dev & prod runmodes to const 2015-12-29 21:32:37 +03:00
nkbai
083c155079 cors test benchmark doesn't use b.N 2015-12-19 10:29:12 +08:00
astaxie
d1bba02958 refact beego config 2015-12-09 23:35:04 +08:00
astaxie
ea2039c1dc golint plugins 2015-09-12 22:03:45 +08:00
astaxie
ad6547936e fix the http: multiple response.WriteHeader calls 2015-08-28 23:08:00 +08:00
Lei Cao
647e6ae1c4 Added JWT plugin 2014-11-24 23:21:03 +08:00
Lei Cao
93ca11f83d Return the response directly if it's a options PreflightHeader request 2014-11-21 01:35:30 +08:00
astaxie
c83a2a0925 modify the comments 2014-08-28 10:21:32 +08:00
astaxie
50a21d60c1 apiauth add more comments & improve 2014-08-28 10:05:02 +08:00
astaxie
5a087b28d2 aws api auth plugins 2014-08-28 00:25:50 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
astaxie
cd9e614a71 plugins: basic auth & cors 2014-08-15 17:15:20 +08:00
astaxie
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
Kirill Zdornyy
d49984d47d Fix basic auth plugin example.
NewBasicAuthenticator requires passing a second argument for Realm.
2014-03-12 15:56:05 +08:00
asta.xie
a184c23603 basic auth for plugin 2014-02-10 11:31:54 +08:00