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 Gin missing method CloseNotify Gin missing method CloseNotify Gin missing method CloseNotify

If w no http.Closenotifier is implemented, there is a problem with the forced conversion of http.Closenotifier

Comment From: sunburst-yz

any plan to fix it?

Comment From: ZooDoz

http.Closenotifier the CloseNotifier interface predates Go's context package. any plan to remove this interface?