fix(UrlParser): stop setting default value 'true' (#10399)

This commit is contained in:
Suguru Inatomi
2016-07-31 06:34:03 +09:00
committed by Rob Wormald
parent c8989c900f
commit 0d6cc17252
2 changed files with 13 additions and 3 deletions

View File

@ -406,7 +406,7 @@ class UrlParser {
return;
}
this.capture(key);
let value: any = 'true';
let value: any = '';
if (this.peekStartsWith('=')) {
this.capture('=');
var valueMatch = matchUrlQueryParamValue(this.remaining);