Commit 9ccdb42f authored by dmitry-online's avatar dmitry-online Committed by ginuerzh

Fix http Handle (#231)

need req.Body.Close() to avoid memory leaks
parent bf6d41f5
......@@ -92,6 +92,7 @@ func (h *httpHandler) Handle(conn net.Conn) {
log.Logf("[http] %s - %s : %s", conn.RemoteAddr(), conn.LocalAddr(), err)
return
}
defer req.Body.Close()
h.handleRequest(conn, req)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment