mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 00:20:26 +00:00
Fixed success parsing on http to return success.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user