fix typo
This commit is contained in:
+8
-4
@@ -71,8 +71,10 @@ class Client extends EventEmitter {
|
||||
res.writeHead(clientRes.statusCode, clientRes.headers);
|
||||
|
||||
// using pump is deliberate - see the pump docs for why
|
||||
pump(clientRes, res, function(err) {
|
||||
this.debug('> PIPE FINISHED, %s', err);
|
||||
pump(clientRes, res, (err) => {
|
||||
if (err) {
|
||||
this.debug('> PIPE ERROR, %s', err);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -86,8 +88,10 @@ class Client extends EventEmitter {
|
||||
});
|
||||
|
||||
// using pump is deliberate - see the pump docs for why
|
||||
pump(req, clientReq, function(err) {
|
||||
this.debug('< PIPE FINISHED, %s', err);
|
||||
pump(req, clientReq, (err) => {
|
||||
if (err) {
|
||||
this.debug('< PIPE ERROR, %s', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user