summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-11-03 14:32:03 -0800
committerisaacs <i@izs.me>2013-11-07 08:24:50 -0800
commitea8feced871849715608cc47618d8ee1cf82742b (patch)
tree05aa7a821f1618ad64cf3444ca80b9d903a113cd /lib
parent10cf8ade635602624641f953d78b53ca5a26aa6b (diff)
downloadnode-new-ea8feced871849715608cc47618d8ee1cf82742b.tar.gz
http: force socket encoding to be null
Otherwise the string triggers an assertion error in node_http_parser.c, line 370: assert(Buffer::HasInstance(args[0]) == true); because the first argument is not a Buffer object.
Diffstat (limited to 'lib')
-rw-r--r--lib/_http_agent.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/_http_agent.js b/lib/_http_agent.js
index a6987dcf2e..022b633c75 100644
--- a/lib/_http_agent.js
+++ b/lib/_http_agent.js
@@ -192,6 +192,7 @@ Agent.prototype.createSocket = function(req, options) {
var name = self.getName(options);
debug('createConnection', name, options);
+ options.encoding = null;
var s = self.createConnection(options);
if (!self.sockets[name]) {
self.sockets[name] = [];