Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[fix] Remove special case handling of 304 responses since it was fi…
…xed in 182dcd3. Fixes #322.
  • Loading branch information
indexzero committed Mar 9, 2013
1 parent ecb5472 commit 28a3b0a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/node-http-proxy/http-proxy.js
Expand Up @@ -287,13 +287,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
});
res.writeHead(response.statusCode);

// If `response.statusCode === 304`: No 'data' event and no 'end'
if (response.statusCode === 304) {
try { res.end() }
catch (ex) { console.error("res.end error: %s", ex.message) }
return;
}

function ondata(chunk) {
if (res.writable) {
if (false === res.write(chunk) && response.pause) {
Expand Down

0 comments on commit 28a3b0a

Please sign in to comment.