You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
zeripath 28f6f7bb03
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>
4 years ago
..
api/v1 Check user instead of organization when creating a repo from a template via API (#16346) 4 years ago
common Support custom mime type mapping for text files (#16304) 4 years ago
install just add some unit tests (#16291) 4 years ago
private
utils just add some unit tests (#16291) 4 years ago
web Restore CORS on git smart http protocol (#16496) 4 years ago
init.go Add LRU mem cache implementation (#16226) 4 years ago