diff options
author | zeripath <art27@cantab.net> | 2021-07-21 04:32:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 11:32:35 +0800 |
commit | 28f6f7bb03884dd3d2c4ff17cdc6bf8916eb441d (patch) | |
tree | ba683cace199a3aa685e1d069dada4b2ca7019ee /integrations/api_repo_file_create_test.go | |
parent | 49bd9a111125da6fd9212e41ca5473a1faff0cf2 (diff) | |
download | gitea-28f6f7bb03884dd3d2c4ff17cdc6bf8916eb441d.tar.gz gitea-28f6f7bb03884dd3d2c4ff17cdc6bf8916eb441d.zip |
Restore CORS on git smart http protocol (#16496)
Unfortunately the chi changes have resulted in the CORS headers for the
git smart http protocol going missing.
This is mostly because the OPTIONS method is not being handled by
httpBase anymore.
This PR adds a GetOptions, PostOptions and Options methods to web
handler to allow OPTIONS method requests to still reach the httpBase
function.
Fix #16350
Close #16491
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'integrations/api_repo_file_create_test.go')
0 files changed, 0 insertions, 0 deletions