Closed rocveralfre closed 2 years ago
A slightly stricter patch for this is included in #271, in that I parse the content type and just ignore the optional part. Your current proposal here would also allow text/event-stream-2
.
Closing in favor of #271. Thanks!
In gun_sse_h.erl line 34, code verifies if the header content is equal to <<"text/event-stream">>.
However, in case server replies with something like:
Code still discards the middleware. I think a good compromise may be: