aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/http.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-17 14:53:41 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-17 14:53:41 -0500
commit32dcaefafa6039e8fe27d263290e33ce5e5d3aa5 (patch)
tree689cfa7791c40b3d25a801c7b7cc3bf07f23ed7f /routers/repo/http.go
parentd1a60e364383b877fd98b853d94b739cb171fe9c (diff)
fox #620
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index 0ce83cef..2dc66449 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -14,9 +14,9 @@ import (
"os"
"os/exec"
"path"
-
"path/filepath"
"regexp"
+ "runtime"
"strconv"
"strings"
"time"
@@ -184,6 +184,7 @@ func Http(ctx *middleware.Context) {
handler := HttpBackend(&config)
handler(ctx.Resp, ctx.Req.Request)
+ runtime.GC()
}
type route struct {