restify/node-restify

Gzip plugin prevents text/event-stream from working

オープン

#820 opened on 2015/06/02

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (983 件のフォーク)batch import
BugCriticalHelp WantedUnconfirmed

Repository metrics

Stars
 (10,695 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド