aboutsummaryrefslogtreecommitdiff
path: root/http_server.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* HTML: Use the proper repo_url_root in tree/rawtreev0.1.12Runxi Yu2025-04-031-0/+7
|
* HTTP: Ref type query errors should be 400, not 500Runxi Yu2025-04-031-1/+1
|
* HTTP: Remove resolved TODO on subgroupsRunxi Yu2025-04-031-2/+0
|
* Git: Return fsPath from OpenRepoRunxi Yu2025-04-021-1/+1
|
* Fix colon warning page's headersRunxi Yu2025-04-011-7/+7
|
* Remind visitors of the changeRunxi Yu2025-04-011-0/+7
|
* Change the main separator from : to -Runxi Yu2025-04-011-3/+3
| | | | Implements: https://todo.sr.ht/~runxiyu/forge/28
* Add descriptive comments to most Go functionsRunxi Yu2025-03-311-0/+4
|
* Replace FileContributor with FileCopyrightTextRunxi Yu2025-03-311-1/+1
|
* Add branches pageRunxi Yu2025-03-311-0/+6
|
* Mandoc moreRunxi Yu2025-03-311-0/+3
|
* Fix out of bounds in commit path handlingRunxi Yu2025-03-251-0/+4
|
* Add 403 and 501 pagesRunxi Yu2025-03-251-3/+3
|
* Navbar slashesRunxi Yu2025-03-251-0/+1
|
* Fix regression in tree/raw dir handlingRunxi Yu2025-03-251-2/+12
|
* Support X-Forwarded-For for reverse proxiesRunxi Yu2025-03-221-1/+12
|
* Use a custom errPage500Runxi Yu2025-03-221-5/+5
|
* Variable name lengthsRunxi Yu2025-03-221-46/+46
|
* Initial lintingRunxi Yu2025-03-221-3/+1
|
* Fix tree/raw redirection and disallow slashes in their path segmentsRunxi Yu2025-03-221-1/+8
|
* Add a "Proper" 404 pageRunxi Yu2025-03-211-7/+8
|
* Stop using the cursed contentfulSegmentsLenRunxi Yu2025-03-211-30/+32
|
* Rename httpRouterRunxi Yu2025-03-211-2/+2
|
* Remove underscores from Go code, pt 4Runxi Yu2025-03-191-70/+70
|
* Remove underscores from Go code, pt 3Runxi Yu2025-03-191-1/+1
|
* Remove underscores from Go code, pt 2Runxi Yu2025-03-181-1/+1
|
* Remove underscores from Go code, pt 1Runxi Yu2025-03-181-2/+2
|
* gc: Add a garbage collection buttonRunxi Yu2025-03-091-0/+3
|
* *: Remove unnecessary debug printfRunxi Yu2025-03-061-2/+0
|
* http: Check for direct user accessRunxi Yu2025-03-061-2/+3
|
* *: ReformatRunxi Yu2025-03-061-2/+2
|
* *: Support subgroups via SQL recursionRunxi Yu2025-03-061-23/+19
|
* *: Typing fixesRunxi Yu2025-03-051-1/+1
|
* *: Replacing more := with varRunxi Yu2025-03-051-17/+21
|
* Add SPDX license headers to all Go filesRunxi Yu2025-03-031-0/+3
|
* all: Remove error wrappingRunxi Yu2025-02-191-2/+0
| | | | | I'm undecided on how I wrap errors in this project. I'll just return errors directly for now. This will probably be adjusted later.
* *.go: ReformatRunxi Yu2025-02-191-2/+2
|
* *.go: Use lowercase error valuesRunxi Yu2025-02-191-1/+1
|
* repo/contrib: Display merge request diffsRunxi Yu2025-02-191-1/+4
|
* http: Add blank contrib/%d templateRunxi Yu2025-02-191-1/+9
|
* http: Fix detecting subgroups with separator_indexRunxi Yu2025-02-191-1/+1
| | | | | | In eabdb3c93cd7118deb5745cca7be9f11a196a9b8 we caused an error message whenver subgroups are used which was written erroneously, causing e.g. the forge front page to be handled here.
* contrib: Add contrib/MR index pageRunxi Yu2025-02-191-1/+6
|
* http: Consistently use redirect_with{out,}_slash, never r.URL.PathRunxi Yu2025-02-191-5/+1
|
* http: Refactor more handler code duplication into the routerRunxi Yu2025-02-181-11/+29
|
* http_server.go: Error out on subgroupsRunxi Yu2025-02-181-0/+6
|
* *.go: Fix missing error handlingRunxi Yu2025-02-161-2/+8
|
* http_*: Add HTTP cloningRunxi Yu2025-02-161-0/+2
|
* *.go: ReformatRunxi Yu2025-02-151-4/+4
|
* {http_server,url}.go: Fix redirectsRunxi Yu2025-02-151-15/+10
| | | | | | | | | | r.URL.Path contains URL segments already decoded which makes it impossible to distinguish from an encoded %2F and a path separator /. We introduce redirect_with_slash which checks it properly. There is still an occurence of r.URL.Path in the commit handler, but that's going to get a major revamp anyway so I'm not bothering to fix that for now. :/
* http_server.go: Redirect tree to tree/, same for rawRunxi Yu2025-02-151-0/+8
|