mirror of https://github.com/apache/jclouds.git
Decode both the key and the value when parsing the request URI
This commit is contained in:
parent
fad4cee803
commit
89aefec026
|
@ -231,9 +231,7 @@ public class VirtualMachineClientLiveTest extends BaseCloudStackClientLiveTest {
|
|||
@Override
|
||||
public boolean apply(@Nullable Network network) {
|
||||
return network.isDefault() &&
|
||||
network.getGuestIPType() == GuestIPType.VIRTUAL &&
|
||||
network.getNetworkOfferingId() == 6 &&
|
||||
network.getId() == 204;
|
||||
network.getGuestIPType() == GuestIPType.VIRTUAL;
|
||||
}
|
||||
}));
|
||||
logger.info("Required network: " + requiredNetwork);
|
||||
|
|
|
@ -170,7 +170,7 @@ public class ModifyRequest {
|
|||
int indexOfFirstEquals = stringToParse.indexOf('=');
|
||||
String key = indexOfFirstEquals == -1 ? stringToParse : stringToParse.substring(0, indexOfFirstEquals);
|
||||
String value = indexOfFirstEquals == -1 ? null : stringToParse.substring(indexOfFirstEquals + 1);
|
||||
map.put(key, Strings2.urlDecode(value));
|
||||
map.put(Strings2.urlDecode(key), Strings2.urlDecode(value));
|
||||
}
|
||||
|
||||
public static String makeQueryLine(Multimap<String, String> params,
|
||||
|
|
Loading…
Reference in New Issue