Skip to content

Commit 9e630da

Browse files
committed
[minor] Indentation fix
1 parent 63ac925 commit 9e630da

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/node-http-proxy/http-proxy.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,13 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
218218
return;
219219
}
220220

221-
222221
function ondata(chunk) {
223-
if (res.writable) {
224-
if (false === res.write(chunk) && response.pause) {
225-
response.pause();
226-
}
222+
if (res.writable) {
223+
if (false === res.write(chunk) && response.pause) {
224+
response.pause();
227225
}
228226
}
227+
}
229228

230229
response.on('data', ondata);
231230

0 commit comments

Comments
 (0)