summaryrefslogtreecommitdiffstats
path: root/modules/httplib/url.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix duplicate sub-path for avatars (#31365) (#31368)wxiaoguang2024-06-151-8/+20
| | | Backport #31365, only backport necessary changes.
* Improve reverse proxy documents and clarify the AppURL guessing behavior ↵Giteabot2024-05-191-11/+20
| | | | | | | | | | | | | | | (#31003) (#31020) Backport #31003 by wxiaoguang Fix #31002 1. Mention Make sure `Host` and `X-Fowarded-Proto` headers are correctly passed to Gitea 2. Clarify the basic requirements and move the "general configuration" to the top 3. Add a comment for the "container registry" 4. Use 1.21 behavior if the reverse proxy is not correctly configured Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Refactor AppURL usage (#30885) (#30891)wxiaoguang2024-05-081-2/+58
| | | | | | | Backport #30885 Fix #30883 Fix #29591 Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Refactor external URL detection (#29973)wxiaoguang2024-03-221-3/+5
| | | | Follow #29960, `IsExternalURL` is not needed anymore. Add some tests for `RedirectToCurrentSite`
* Refactor URL detection (#29960)wxiaoguang2024-03-211-7/+27
| | | "Redirect" functions should only redirect if the target is for current Gitea site.
* Use fetch to send requests to create issues/comments (#25258)wxiaoguang2023-06-161-0/+27
Follow #23290 Network error won't make content lost. And this is a much better approach than "loading-button". The UI is not perfect and there are still some TODOs, they can be done in following PRs, not a must in this PR's scope. <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/c94ba958-aa46-4747-8ddf-6584deeed25c) </details>