aboutsummaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.go b/http.go
index b5982e8..cc57ff2 100644
--- a/http.go
+++ b/http.go
@@ -33,7 +33,7 @@ func httpHandler(conn net.Conn, delay time.Duration) {
eof := make(chan empty)
go func() {
- close(eof)
+ defer close(eof)
io.Copy(ioutil.Discard, conn)
}()