mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
fix missing separator char for post values with same name
This commit is contained in:
@@ -417,9 +417,15 @@ public class URLHttpClient implements HttpClient
|
||||
{
|
||||
String key = encode(p.getKey());
|
||||
|
||||
for (String value : values)
|
||||
Iterator<String> valueIt = values.iterator();
|
||||
|
||||
while(valueIt.hasNext())
|
||||
{
|
||||
String value = valueIt.next();
|
||||
writer.append(key).append("=").append(encode(value));
|
||||
if ( valueIt.hasNext() ){
|
||||
writer.write("&");
|
||||
}
|
||||
}
|
||||
|
||||
if (it.hasNext())
|
||||
|
||||
Reference in New Issue
Block a user