timakin / bodyclose

Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked.
MIT License
309 stars 33 forks source link

False positive when using `http.NewResponseController(rw)` #52

Closed francislavoie closed 3 weeks ago

francislavoie commented 1 year ago

Simply calling http.NewResponseController(rw) for example in an HTTP server (to then call .Flush() on it) causes a linter warning.