Skip to content

Commit

Permalink
QueryString.Decoder incorrectly adds a null query param #235
Browse files Browse the repository at this point in the history
  • Loading branch information
eskatos committed Jan 5, 2015
1 parent 2ac5b3a commit cdf9e3b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -444,7 +444,7 @@ public Decoder( URI uri, Charset charset, int maxParams )
hasPath = false;
}
// Also take care of cut of things like "http://localhost"
this.uri = rawPath + '?' + uri.getRawQuery();
this.uri = rawPath + ( uri.getRawQuery() == null ? "" : '?' + uri.getRawQuery() );

this.charset = charset;
this.maxParams = maxParams;
Expand Down

0 comments on commit cdf9e3b

Please sign in to comment.