1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 02:10:50 +00:00

Merge branch 'master' into develop

This commit is contained in:
astaxie 2016-01-27 10:14:34 +08:00
commit 4ce094a29a

View File

@ -36,6 +36,7 @@
package cors
import (
"net/http"
"regexp"
"strconv"
"strings"
@ -215,6 +216,7 @@ func Allow(opts *Options) beego.FilterFunc {
for key, value := range headers {
ctx.Output.Header(key, value)
}
ctx.ResponseWriter.WriteHeader(http.StatusOK)
return
}
headers = opts.Header(origin)