url: make query() consistent
Match the behavior of the slow path by setting url.query to an empty object when the url contains no query, but query parsing is requested. Also add a test for this case, and update the documents to clearly reflect this behavior. Fixes: https://github.com/joyent/node/issues/8332 Reviewed-by:Trevor Norris <trev.norris@gmail.com>
parent
ac2857b1
Please register or sign in to comment