1
0
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>
2016-01-26 23:27:26 +08:00
2016-01-17 23:48:17 +08:00
2016-01-18 00:18:21 +08:00
2016-01-17 23:57:07 +08:00
2016-01-04 22:41:25 +08:00
2016-01-17 23:57:07 +08:00
2016-01-18 00:18:21 +08:00
2016-01-18 16:11:27 +08:00
2016-01-17 23:57:07 +08:00
2015-09-12 23:19:18 +08:00
2016-01-18 00:18:21 +08:00
2016-01-18 15:27:33 +08:00
2016-01-18 00:18:21 +08:00
2015-08-31 11:58:11 +08:00
2016-01-17 18:35:11 +08:00
2016-01-15 14:07:37 +08:00
2016-01-12 21:55:02 +08:00
2016-01-08 01:40:19 +08:00
2016-01-15 14:07:37 +08:00
2016-01-18 00:22:11 +08:00
2016-01-13 22:02:36 +08:00
2015-12-16 23:11:03 +08:00
2016-01-18 16:11:27 +08:00
2016-01-17 23:48:17 +08:00
2016-01-18 00:18:21 +08:00
2015-12-16 23:11:03 +08:00
2015-12-22 10:02:59 +08:00
2015-09-08 21:41:38 +08:00
2016-01-15 14:07:37 +08:00
2016-01-12 21:55:02 +08:00
2014-05-17 02:26:50 +08:00
2016-01-06 11:48:23 +08:00
2015-09-08 21:41:38 +08:00
2015-09-08 21:41:38 +08:00
2015-12-09 23:35:04 +08:00
2016-01-15 14:59:16 +08:00
2015-12-16 23:11:03 +08:00
2016-01-18 23:29:56 +08:00
2015-12-18 09:28:40 +08:00
2016-01-18 00:18:21 +08:00
2015-09-08 23:29:58 +08:00
2016-01-18 00:18:21 +08:00
2015-09-08 23:41:41 +08:00
2016-01-18 00:18:21 +08:00
2016-01-03 21:06:35 +08:00
2016-01-17 23:57:07 +08:00

Beego

Build Status GoDoc

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
beego mirror
Readme 9.4 MiB
Languages
Go 99.6%
Shell 0.4%