gin
gin copied to clipboard
missing method CloseNotify
error message
interface conversion: *middle.timeoutWriter is not http.CloseNotifier: missing method CloseNotify
I encountered a missing method closenotify
error. After troubleshooting, I found that there was a mandatory type assertion in gin
https://github.com/gin-gonic/gin/blob/464535ff94799b012f90f15edcffd32e4abe32fa/response_writer.go#L112
As shown below
If w
no http.Closenotifier
is implemented, there is a problem with the forced conversion of http.Closenotifier
any plan to fix it?
http.Closenotifier the CloseNotifier interface predates Go's context package. any plan to remove this interface?