mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-18 08:13:23 +00:00
Bug: Comparison of String objects using == or != in
com.bwssystems.HABridge.plugins.http.HTTPHandler.doHttpRequest(String, String, String, String, NameValue[])
This commit is contained in:
@@ -115,7 +115,7 @@ public class HTTPHandler {
|
|||||||
theContent = "";
|
theContent = "";
|
||||||
log.debug("Successfull response - The http response is <<<" + theContent + ">>>");
|
log.debug("Successfull response - The http response is <<<" + theContent + ">>>");
|
||||||
retryCount = 2;
|
retryCount = 2;
|
||||||
} else if (callType != null && callType == DeviceMapTypes.FHEM_DEVICE[DeviceMapTypes.typeIndex] && response.getStatusLine().getStatusCode() == 302) {
|
} else if (DeviceMapTypes.FHEM_DEVICE[DeviceMapTypes.typeIndex].equals(callType) && response.getStatusLine().getStatusCode() == 302) {
|
||||||
if(theContent == null)
|
if(theContent == null)
|
||||||
theContent = "";
|
theContent = "";
|
||||||
log.debug("Successfull response - The http response is <<<" + theContent + ">>>");
|
log.debug("Successfull response - The http response is <<<" + theContent + ">>>");
|
||||||
|
|||||||
Reference in New Issue
Block a user