Don't send EOT
It was a bug that sending EOT when closing connection.
This commit is contained in:
@@ -216,10 +216,6 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
go func() {
|
||||
<-exit
|
||||
if app.PermitWrite {
|
||||
fio.Write([]byte{4})
|
||||
}
|
||||
fio.Close()
|
||||
conn.Close()
|
||||
log.Printf("Connection closed: %s", r.RemoteAddr)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user