summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2017-07-28 15:22:07 -0300
committerGuilherme Iscaro <iscaro@profusion.mobi>2017-07-28 15:22:51 -0300
commitef03ecd89ca8206b61e028752ac567036c1150cf (patch)
tree6239bf76a5e5c8de8624a410d88681fd95d72bed /src/lib/ecore_con
parent493f75587d3ff0dd5a5689efc0de72c047bcf5ac (diff)
Ecore_Con: Fix wrong comparison.
Otherwise it will always evaluate to false.
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/ecore_con_url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_con/ecore_con_url.c b/src/lib/ecore_con/ecore_con_url.c
index 8c03176738..39412d7f83 100644
--- a/src/lib/ecore_con/ecore_con_url.c
+++ b/src/lib/ecore_con/ecore_con_url.c
@@ -348,7 +348,7 @@ _ecore_con_url_dialer_error(void *data, const Efl_Event *event)
348 int status; 348 int status;
349 349
350 status = efl_net_dialer_http_response_status_get(url_con->dialer); 350 status = efl_net_dialer_http_response_status_get(url_con->dialer);
351 if ((status < 500) && (status > 599)) 351 if ((status < 500) || (status > 599))
352 { 352 {
353 DBG("HTTP error %d reset to 1", status); 353 DBG("HTTP error %d reset to 1", status);
354 status = 1; /* not a real HTTP error */ 354 status = 1; /* not a real HTTP error */
@@ -655,7 +655,7 @@ _ecore_con_url_copier_error(void *data, const Efl_Event *event)
655 int status; 655 int status;
656 656
657 status = efl_net_dialer_http_response_status_get(url_con->dialer); 657 status = efl_net_dialer_http_response_status_get(url_con->dialer);
658 if ((status < 500) && (status > 599)) 658 if ((status < 500) || (status > 599))
659 { 659 {
660 DBG("HTTP error %d reset to 1", status); 660 DBG("HTTP error %d reset to 1", status);
661 status = 1; /* not a real HTTP error */ 661 status = 1; /* not a real HTTP error */
@@ -1337,7 +1337,7 @@ _ecore_con_url_timeout_cb(void *data)
1337 WRN("HTTP timeout url='%s'", efl_net_dialer_address_dial_get(url_con->dialer)); 1337 WRN("HTTP timeout url='%s'", efl_net_dialer_address_dial_get(url_con->dialer));
1338 1338
1339 status = efl_net_dialer_http_response_status_get(url_con->dialer); 1339 status = efl_net_dialer_http_response_status_get(url_con->dialer);
1340 if ((status < 500) && (status > 599)) 1340 if ((status < 500) || (status > 599))
1341 { 1341 {
1342 DBG("HTTP error %d reset to 1", status); 1342 DBG("HTTP error %d reset to 1", status);
1343 status = 1; /* not a real HTTP error */ 1343 status = 1; /* not a real HTTP error */