mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
update: macaron cores,gzip,session (#10522)
Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
3
vendor/gitea.com/macaron/cors/cors.go
generated
vendored
3
vendor/gitea.com/macaron/cors/cors.go
generated
vendored
@@ -151,7 +151,8 @@ func CORS(options ...Options) macaron.Handler {
|
||||
}
|
||||
})
|
||||
if reqOptions {
|
||||
ctx.Status(200) // return response
|
||||
ctx.Resp.WriteHeader(200) // return response
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user