Skip to content

Commit

Permalink
Removed broken pipe handling condition
Browse files Browse the repository at this point in the history
  • Loading branch information
eeonevision committed Nov 26, 2019
1 parent 28c8207 commit 752df2e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions context.go
Expand Up @@ -16,7 +16,6 @@ import (
"net/url"
"os"
"strings"
"syscall"
"time"

"github.com/gin-contrib/sse"
Expand Down Expand Up @@ -818,10 +817,7 @@ func (c *Context) Render(code int, r render.Render) {

if err := r.Render(c.Writer); err != nil {
c.Error(err)

if err == syscall.EPIPE {
c.AbortWithStatus(httpStatusClientClosedRequest)
}
c.Abort()
}
}

Expand Down

0 comments on commit 752df2e

Please sign in to comment.