http: close remote conn after relay

This commit is contained in:
nadoo committed 2019-10-21 14:16:49 +08:00
1 parent 486c455236
commit 39cd60c50b
7 files changed
+21 -12

No files matched your search

+1
View File
@@ -93,6 +93,7 @@ func (s *HTTP) servHTTPS(r *request, c net.Conn) {
log.F("[http] %s <-> %s [c] via %s, error in dial: %v", c.RemoteAddr(), r.uri, p, err)
return
}
defer rc.Close()
c.Write([]byte("HTTP/1.1 200 Connection established\r\n\r\n"))