restify/node-restify

Gzip plugin prevents text/event-stream from working

Aperta

#820 aperta il 2 giu 2015

 (7 commenti) (0 reazioni) (0 assegnatari)JavaScript (983 fork)batch import
BugCriticalHelp WantedUnconfirmed

Metriche repository

Star
 (10.695 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

I have to call

      res.handledGzip && res.handledGzip();
      res.removeHeader('Content-Encoding');

in my SSE plugin to bypass the Gzip plugin—otherwise EventSource fails.

The solution would involve adding support for keep alive connection in the Gzip plugin.

Guida contributor