diff options
Diffstat (limited to 'lib/querystring.js')
-rw-r--r-- | lib/querystring.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/querystring.js b/lib/querystring.js index bfb6fa3332..240e2e70d6 100644 --- a/lib/querystring.js +++ b/lib/querystring.js @@ -64,14 +64,14 @@ const unhexTable = [ ]; // A safe fast alternative to decodeURIComponent function unescapeBuffer(s, decodeSpaces) { - var out = Buffer.allocUnsafe(s.length); + const out = Buffer.allocUnsafe(s.length); var index = 0; var outIndex = 0; var currentChar; var nextChar; var hexHigh; var hexLow; - var maxLength = s.length - 2; + const maxLength = s.length - 2; // Flag to know if some hex chars have been decoded var hasHex = false; while (index < s.length) { @@ -214,8 +214,8 @@ function parse(qs, sep, eq, options) { return obj; } - var sepCodes = (!sep ? defSepCodes : charCodes(sep + '')); - var eqCodes = (!eq ? defEqCodes : charCodes(eq + '')); + const sepCodes = (!sep ? defSepCodes : charCodes(sep + '')); + const eqCodes = (!eq ? defEqCodes : charCodes(eq + '')); const sepLen = sepCodes.length; const eqLen = eqCodes.length; |