aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_raw.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Unexport fields in Serverv0.1.24Runxi Yu2025-04-051-1/+1
|
* Move things to internal/v0.1.23Runxi Yu2025-04-051-2/+2
|
* Use cmd/forge for the entry pointRunxi Yu2025-04-051-3/+3
|
* config shall no longer be a global variableRunxi Yu2025-04-051-3/+3
|
* misc: Move url.go into the misc packageRunxi Yu2025-04-051-1/+2
|
* HTTP: Replace if-else chain with switchRunxi Yu2025-04-051-3/+4
|
* Refactor git2d comms to ./git2cRunxi Yu2025-04-051-102/+17
|
* Reduce unnecessary allocations when converting []byte to stringv0.1.22Runxi Yu2025-04-051-2/+2
|
* Reduce allocations when converting string to []byteRunxi Yu2025-04-051-2/+2
|
* Be a bit more careful handling size integer overflows and suchv0.1.19Runxi Yu2025-04-051-1/+1
|
* HTTP: Use range in for loops over integersRunxi Yu2025-04-051-1/+1
|
* HTTP: Avoid an sprintfRunxi Yu2025-04-051-1/+1
|
* HTTP: Make the tree and raw endpoints use git2dRunxi Yu2025-04-051-63/+96
|
* HTTP: Serve raw blobs with application/octet-streamRunxi Yu2025-04-031-0/+1
| | | | | | | | | So we don't get XSSed. Might be useful to use heuristics to detect whether it's displayable as text/plain, though. Fixes: https://todo.sr.ht/~runxiyu/forge/20#event-411435
* Add descriptive comments to most Go functionsRunxi Yu2025-03-311-0/+2
|
* Replace FileContributor with FileCopyrightTextRunxi Yu2025-03-311-1/+1
|
* Avoid allocations by using unsafe strinng/bytes conversionsRunxi Yu2025-03-301-1/+1
|
* Lint and add CIRunxi Yu2025-03-271-1/+1
|
* Use cache for raw files tooRunxi Yu2025-03-251-1/+31
|
* Use a custom errPage500Runxi Yu2025-03-221-5/+5
|
* Variable name lengthsRunxi Yu2025-03-221-10/+10
|
* Fix tree/raw redirection and disallow slashes in their path segmentsRunxi Yu2025-03-221-5/+2
|
* Remove underscores from Go code, pt 6Runxi Yu2025-03-191-17/+17
|
* Remove underscores from Go code, pt 5Runxi Yu2025-03-191-3/+3
|
* Remove underscores from Go code, pt 4Runxi Yu2025-03-191-2/+2
|
* Remove underscores from Go code, pt 3Runxi Yu2025-03-191-2/+2
|
* repo/*: Use var instead of :=Runxi Yu2025-03-051-15/+19
|
* Add SPDX license headers to all Go filesRunxi Yu2025-03-031-0/+3
|
* http: Refactor more handler code duplication into the routerRunxi Yu2025-02-181-9/+2
|
* http_handle_repo_*.go: Remove redundant returnRunxi Yu2025-02-141-1/+0
|
* http_*.go: Abstract out render_template for deduplicationRunxi Yu2025-02-141-5/+2
|
* http_*: Refactor to reduce duplicationRunxi Yu2025-02-141-13/+2
|
* http_handle_*.go: Fix http.Error callsRunxi Yu2025-02-131-8/+8
| | | | | | Previously when I was converting the fmt.Fprintln calls into http.Error, there was a mistake in my sed command which caused some of the messages to have double colons. This should fix them.
* http_*.go: Use http.ErrorRunxi Yu2025-02-131-9/+9
|
* repo_index: Add repo descriptionsRunxi Yu2025-02-131-1/+2
|
* http_handle_*.go: Use fmt.Fprintln, not w.WriteRunxi Yu2025-02-131-9/+10
|
* _header.html: Add headerRunxi Yu2025-02-131-8/+6
|
* *.go: Mass rename files for clarityRunxi Yu2025-02-131-0/+90