aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_raw.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_handle_repo_raw.go')
-rw-r--r--http_handle_repo_raw.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/http_handle_repo_raw.go b/http_handle_repo_raw.go
index 858f912..4394e18 100644
--- a/http_handle_repo_raw.go
+++ b/http_handle_repo_raw.go
@@ -14,6 +14,8 @@ import (
"github.com/go-git/go-git/v5/plumbing/object"
)
+// httpHandleRepoRaw serves raw files, or directory listings that point to raw
+// files.
func httpHandleRepoRaw(writer http.ResponseWriter, request *http.Request, params map[string]any) {
var rawPathSpec, pathSpec string
var repo *git.Repository