diff --git a/doc/api/cluster.markdown b/doc/api/cluster.markdown index 7af04ec05c..d0e4de3c6f 100644 --- a/doc/api/cluster.markdown +++ b/doc/api/cluster.markdown @@ -58,7 +58,7 @@ create one, and pass the handle to the child. This causes potentially surprising behavior in three edge cases: -1. `server.listen({fd: 7})` Because the message is passed to the worker, +1. `server.listen({fd: 7})` Because the message is passed to the master, file descriptor 7 **in the parent** will be listened on, and the handle passed to the worker, rather than listening to the worker's idea of what the number 7 file descriptor references. diff --git a/lib/querystring.js b/lib/querystring.js index 7ccd8cf49a..12b6013d52 100644 --- a/lib/querystring.js +++ b/lib/querystring.js @@ -151,7 +151,7 @@ QueryString.stringify = QueryString.encode = function(obj, sep, eq, name) { }).join(sep); } - + if (!name) return ''; return QueryString.escape(stringifyPrimitive(name)) + eq + QueryString.escape(stringifyPrimitive(obj));