restify/node-restify

Gzip plugin prevents text/event-stream from working

Open

#820 aperta il 2 giu 2015

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

Metriche repository

Star
 (10.695 star)
Metriche merge PR
 (Merge medio 3h 56m) (2 PR mergiate in 30 g)

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