Check if (r *Response).Writer is http.Flusher before calling Flush#2017
Check if (r *Response).Writer is http.Flusher before calling Flush#2017MarkRosemaker wants to merge 1 commit intolabstack:masterfrom MarkRosemaker:check-if-response-writer-is-flusher-before-flushing
Conversation
|
@MarkRosemaker could you describe a little how this Line 97 in 8b4cce5 |
Thanks for the reply, @aldas ! It seems to me the response was set via |
|
Could you check in debugger view what type |
Most likely, from what I could find out, it is a struct of our own (the one mentioned above). I've made another PR in one of our repos to implement the Flush method in that one. I think we just did not consider that echo expects the writer to be a |
There is no guarantee that the writer is a flusher. In fact, I noticed this issue because a service of a company I work for has paniced because it wasn't: