Commit ff785fd5 authored by Brian White's avatar Brian White Committed by James M Snell
Browse files

querystring: fix empty pairs and optimize parse()

This commit fixes handling of empty pairs that occur before the end
of the query string so that they are also ignored.

Additionally, some optimizations have been made, including:

* Avoid unnecessary code execution where possible
* Use a lookup table when checking for hex characters
* Avoid forced decoding when '+' characters are encountered and we
are using the default decoder

Fixes: https://github.com/nodejs/node/issues/10454
PR-URL: https://github.com/nodejs/node/pull/11234


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarNicu Micleușanu <micnic90@gmail.com>
parent d3be0f88
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