aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2020-02-16 04:41:10 +0200
committerMarin Ivanov <[email protected]>2020-02-16 04:41:10 +0200
commit1a339a82fe6209e463029e433a254e6d237fa17c (patch)
tree54ddfa393e6ff26fe4c1bc562a09420e036ffd58
parent84b10f1a0dcd52c67279aa63cd137654d2ecf05d (diff)
Fix typo, missing deferv0.1.4
-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)
}()