diff options
author | 6543 <6543@obermui.de> | 2020-02-28 10:51:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 10:51:18 +0100 |
commit | 8d2059a20184842d9a7a573d285956dd998d42c4 (patch) | |
tree | ea957536a3d71dc9a98b793fe9b0e8c89252ea12 /vendor/gitea.com/macaron/cors | |
parent | 694f44660f51aa2e8be920c49461380b7db64755 (diff) | |
download | gitea-8d2059a20184842d9a7a573d285956dd998d42c4.tar.gz gitea-8d2059a20184842d9a7a573d285956dd998d42c4.zip |
update: macaron cores,gzip,session (#10522)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'vendor/gitea.com/macaron/cors')
-rw-r--r-- | vendor/gitea.com/macaron/cors/cors.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/gitea.com/macaron/cors/cors.go b/vendor/gitea.com/macaron/cors/cors.go index ed00df1e7b..2d0613f2bc 100644 --- a/vendor/gitea.com/macaron/cors/cors.go +++ b/vendor/gitea.com/macaron/cors/cors.go @@ -151,7 +151,8 @@ func CORS(options ...Options) macaron.Handler { } }) if reqOptions { - ctx.Status(200) // return response + ctx.Resp.WriteHeader(200) // return response + return } } } |