Skip to content

Commit

Permalink
Merge pull request #99 from fastly/joeshaw/dont-defer-rw-close
Browse files Browse the repository at this point in the history
  • Loading branch information
joeshaw authored Jan 4, 2024
2 parents a8ec914 + f2a9a7b commit a015caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsthttp/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func Serve(h Handler) {
}
})

defer clientResponseWriter.Close()
h.ServeHTTP(ctx, clientResponseWriter, clientRequest)
clientResponseWriter.Close()
}

// ServeFunc is sugar for Serve(HandlerFunc(f)).
Expand Down

0 comments on commit a015caa

Please sign in to comment.