1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-15 06:04:32 -04:00
gitea/routers
Anthony Wang f53e46c721
If httpsig verification fails, fix Host header and try again
This fixes a very rare bug when Gitea and another AP server (confirmed to happen with Mastodon) are running on the same machine, Gitea fails to verify incoming HTTP signatures. This is because the other AP server creates the sig with the public Gitea domain as the Host. However, when Gitea receives the request, the Host header is instead localhost, so the signature verification fails. Manually changing the host header to the correct value and trying the verification again fixes the bug.
2022-06-14 16:23:08 -05:00
..
api If httpsig verification fails, fix Host header and try again 2022-06-14 16:23:08 -05:00
common
install
private Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
utils
web Make sure API responses always refer to username in original case 2022-06-14 12:01:41 -05:00
init.go