mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 741165 - Correct SyncResponse.jsonBody. r=msamuel
This commit is contained in:
parent
330a3cd6f9
commit
bf5abf9b00
@ -71,14 +71,19 @@ public class SyncResponse {
|
||||
ParseException {
|
||||
if (body != null) {
|
||||
// Do it from the cached String.
|
||||
ExtendedJSONObject.parse(body);
|
||||
return ExtendedJSONObject.parse(body);
|
||||
}
|
||||
|
||||
HttpEntity entity = this.response.getEntity();
|
||||
if (entity == null) {
|
||||
return null;
|
||||
}
|
||||
InputStream content = entity.getContent();
|
||||
return ExtendedJSONObject.parse(content);
|
||||
try {
|
||||
return ExtendedJSONObject.parse(content);
|
||||
} finally {
|
||||
content.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user