fix(http): URLSearchParams.clone propagate the QueryEncoder (#9900)

This commit is contained in:
Cody-Nicholson
2016-07-30 21:01:20 -05:00
committed by Victor Berchet
parent 0d6cc17252
commit 251953218c
2 changed files with 23 additions and 1 deletions

View File

@ -89,7 +89,7 @@ export class URLSearchParams {
}
clone(): URLSearchParams {
var clone = new URLSearchParams();
var clone = new URLSearchParams('', this.queryEncoder);
clone.appendAll(this);
return clone;
}