fix: 改进 SSE 克隆处理,仓库页面添加调试信息

This commit is contained in:
2026-06-18 23:04:58 +08:00
parent 34ef868e10
commit 4f873cf2ce
3 changed files with 195 additions and 85 deletions
+1
View File
@@ -110,6 +110,7 @@ func (h *ReposHandler) CloneRepo(c *gin.Context) {
c.Header("Cache-Control", "no-cache")
c.Header("Connection", "keep-alive")
c.Header("X-Accel-Buffering", "no")
c.Status(http.StatusOK)
flusher, ok := c.Writer.(http.Flusher)
if !ok {