APIClient: Fixing a problem with getString
The javax does not handle parsing JsonValue directly. So it is replaced for the getString with a direct removal of the quotations. The alternative is to replace the javax parser with a different one. Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com> Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
parent
2058cdde7c
commit
3e326bf2d0
@ -117,7 +117,8 @@ public class APIClient {
|
||||
}
|
||||
|
||||
public String getStringValue(String string, MultivaluedMap<String, String> queryParams) {
|
||||
return getReader(string, queryParams).toString();
|
||||
return getRawValue(string,
|
||||
queryParams).replaceAll("^\"|\"$", "");
|
||||
}
|
||||
|
||||
public String getStringValue(String string) {
|
||||
|
Loading…
Reference in New Issue
Block a user