Commit b705b73e authored by Gabriel Wicke's avatar Gabriel Wicke Committed by Trevor Norris
Browse files

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: default avatarTrevor Norris <trev.norris@gmail.com>
parent ac2857b1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment