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.

贡献者指南

Gzip plugin prevents text/event-stream from working · restify/node-restify#820 | Good First Issue