Permalink
Browse files

stream: always force chunked encoding emulation

  • Loading branch information...
indutny committed Oct 2, 2013
1 parent 7fc66f9 commit c33acb49d32927b1c583dc6c3eafcb73789c8e31
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/spdy/stream.js
View
@@ -564,10 +564,9 @@ Stream.prototype._handleResponse = function handleResponse(frame) {
});
// Force chunked encoding
- if (!headers['transfer-encoding']) {
- req.push('Transfer-Encoding: chunked');
- state.forceChunked = true;
- }
+ delete headers['transfer-encoding'];
+ req.push('Transfer-Encoding: chunked');
+ state.forceChunked = true;
// Make sure that node.js won't think that this stream can be reused
req.push('Connection: close');

0 comments on commit c33acb4

Please sign in to comment.