summaryrefslogtreecommitdiff
path: root/lib/_http_client.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_http_client.js')
-rw-r--r--lib/_http_client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_http_client.js b/lib/_http_client.js
index 71f5c335d0..339a5c785d 100644
--- a/lib/_http_client.js
+++ b/lib/_http_client.js
@@ -205,7 +205,7 @@ function socketErrorListener(err) {
var socket = this;
var parser = socket.parser;
var req = socket._httpMessage;
- debug('HTTP SOCKET ERROR: ' + err.message + '\n' + err.stack);
+ debug('SOCKET ERROR:', err.message, err.stack);
if (req) {
req.emit('error', err);
@@ -325,7 +325,7 @@ function parserOnIncomingClient(res, shouldKeepAlive) {
// to the content-length of the entity-body had the request
// been a GET.
var isHeadResponse = req.method == 'HEAD';
- debug('AGENT isHeadResponse ' + isHeadResponse);
+ debug('AGENT isHeadResponse', isHeadResponse);
if (res.statusCode == 100) {
// restart the parser, as this is a continue message.