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() }