fix bug in appendParameter method of UrlBuilder

This commit is contained in:
Sebastian Sdorra
2011-12-29 10:37:12 +01:00
parent 123ecb6af3
commit 43645bc700
2 changed files with 90 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ public class UrlBuilder
if (baseUrl.contains(HttpUtil.SEPARATOR_PARAMETERS))
{
separator = HttpUtil.SEPARATOR_PARAMETER;
parameterAdded = true;
}
else
{
@@ -139,6 +140,7 @@ public class UrlBuilder
{
url = new StringBuilder(url).append(separator).append(name).append(
HttpUtil.SEPARATOR_PARAMETER_VALUE).append(value).toString();
separator = HttpUtil.SEPARATOR_PARAMETER;
parameterAdded = true;
}