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.