fix(http): add search param escaping for keys (#9166)
This commit is contained in:

committed by
Rob Wormald

parent
8899b83927
commit
a5f2e205ef
@ -122,8 +122,9 @@ export class URLSearchParams {
|
||||
|
||||
toString(): string {
|
||||
var paramsList: string[] = [];
|
||||
this.paramsMap.forEach(
|
||||
(values, k) => { values.forEach(v => paramsList.push(k + '=' + encodeURIComponent(v))); });
|
||||
this.paramsMap.forEach((values, k) => {
|
||||
values.forEach(v => paramsList.push(encodeURIComponent(k) + '=' + encodeURIComponent(v)));
|
||||
});
|
||||
return paramsList.join('&');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user