mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-14 03:16:24 +00:00
Fix unnecessary escape
This commit is contained in:
parent
721b504e25
commit
4a0758db24
@ -56,7 +56,7 @@ exports.querystringStringify = function (obj) {
|
||||
var saved = querystring.escape
|
||||
querystring.escape = escape // global
|
||||
var ret = querystring.stringify(obj)
|
||||
ret = ret.replace(/[\@\*\/\+]/g, function (char) {
|
||||
ret = ret.replace(/[@\*\/\+]/g, function (char) {
|
||||
// `escape` doesn't encode the characters @*/+ so we do it manually
|
||||
return '%' + char.charCodeAt(0).toString(16).toUpperCase()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user