http: force socket encoding to be null
authorisaacs <i@izs.me>
Sun, 3 Nov 2013 22:32:03 +0000 (14:32 -0800)
committerisaacs <i@izs.me>
Thu, 7 Nov 2013 16:24:50 +0000 (08:24 -0800)
commitea8feced871849715608cc47618d8ee1cf82742b
tree05aa7a821f1618ad64cf3444ca80b9d903a113cd
parent10cf8ade635602624641f953d78b53ca5a26aa6b
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.
lib/_http_agent.js
test/simple/test-http-client-encoding.js [new file with mode: 0644]