Skip to content

Commit

Permalink
[minor] Indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Oct 25, 2011
1 parent 63ac925 commit 9e630da
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/node-http-proxy/http-proxy.js
Expand Up @@ -218,14 +218,13 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
return;
}


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

response.on('data', ondata);

Expand Down

0 comments on commit 9e630da

Please sign in to comment.