From 1efd08a43d33517e906a39474e57862f1d87a3c4 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 29 Oct 2021 17:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/http.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routers/repo/http.go b/routers/repo/http.go index 7199cd42b..707cb2700 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -318,9 +318,12 @@ func HTTP(ctx *context.Context) { dataJson, _ := json.Marshal(ctx.Data) log.Info("dataJson=" + string(dataJson)) - reqJson, _ := json.Marshal(ctx.Req.Request) + reqJson, _ := json.Marshal(ctx.Req) log.Info("reqJson=" + string(reqJson)) + paramJson, _ := json.Marshal(ctx.Params) + log.Info("paramJson=" + string(paramJson)) + if service == "git-upload-pack" { // clone_cnt go repo.IncreaseCloneCnt() }