mirror of
https://github.com/astaxie/beego.git
synced 2025-01-22 14:47:12 +00:00
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>
Beego
beego is used for rapid development of RESTful APIs, web apps and backend services in Go. It is inspired by Tornado, Sinatra and Flask. beego has some Go-specific features such as interfaces and struct embedding.
More info beego.me
##Quick Start ######Download and install
go get github.com/astaxie/beego
######Create file hello.go
package main
import "github.com/astaxie/beego"
func main(){
beego.Run()
}
######Build and run
go build hello.go
./hello
######Congratulations!
You just built your first beego app.
Open your browser and visit http://localhost:8000
.
Please see Documentation for more.
Features
- RESTful support
- MVC architecture
- Modularity
- Auto API documents
- Annotation router
- Namespace
- Powerful development tools
- Full stack for Web & API
Documentation
Community
LICENSE
beego source code is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).
Description
Languages
Go
99.6%
Shell
0.4%