restify/node-restify

Gzip plugin prevents text/event-stream from working

Open

#820 建立於 2015年6月2日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)JavaScript (10,695 star) (983 fork)batch import
BugCriticalHelp WantedUnconfirmed

描述

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.

貢獻者指南