1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-16 14:00:59 +00:00
Beego/plugins
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
..
apiauth fix typo 2016-01-17 23:48:17 +08:00
auth golint plugins 2015-09-12 22:03:45 +08:00
cors Fix regression caused by commit ad65479 2016-01-26 23:27:26 +08:00