Fixed success parsing on http to return success.

This commit is contained in:
Admin
2016-05-04 14:38:37 -05:00
parent c773477a43
commit 351403e611
2 changed files with 3 additions and 1 deletions

View File

@@ -755,6 +755,8 @@ public class HueMulator implements HueErrorStringSet {
if(response.getEntity() != null ) {
theContent = EntityUtils.toString(response.getEntity(), Charset.forName("UTF-8")); //read content for data
EntityUtils.consume(response.getEntity()); //close out inputstream ignore content
if(theContent == null)
theContent = "";
}
}
} catch (IOException e) {