From edc3552e83c5106a0e36147c333cc23f7196ec09 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 16 Feb 2025 02:26:22 +0800 Subject: http_*: Add HTTP cloning --- http_server.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'http_server.go') 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) { -- cgit v1.2.3