mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-16 17:59:25 +08:00

The web context (modules/context.Context) is quite complex, it's difficult for the callers to initialize correctly. This PR introduces a `NewWebContext` function, to make sure the web context have the same behavior for different cases.