diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-16 02:26:22 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-16 02:26:22 +0800 |
commit | edc3552e83c5106a0e36147c333cc23f7196ec09 (patch) | |
tree | ea3d77126058e3ac92d15eb198a490dcf2e66df4 /http_server.go | |
parent | {ssh_*,acl}.go: Check ACL when receiving packs (diff) | |
download | forge-edc3552e83c5106a0e36147c333cc23f7196ec09.tar.gz forge-edc3552e83c5106a0e36147c333cc23f7196ec09.tar.zst forge-edc3552e83c5106a0e36147c333cc23f7196ec09.zip |
http_*: Add HTTP cloning
Diffstat (limited to 'http_server.go')
-rw-r--r-- | http_server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/http_server.go b/http_server.go index ffbb711..1a4d0a3 100644 --- a/http_server.go +++ b/http_server.go @@ -132,6 +132,8 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { switch repo_feature { case "info": handle_repo_info(w, r, params) + case "git-upload-pack": + handle_upload_pack(w, r, params) case "tree": params["rest"] = strings.Join(segments[separator_index+4:], "/") if len(segments) < separator_index+5 && redirect_with_slash(w, r) { |