barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=68ea5bd025a6582c96860ee875f4510d1f0d0c23

commit 68ea5bd025a6582c96860ee875f4510d1f0d0c23
Author: Gustavo Sverzut Barbieri <barbi...@profusion.mobi>
Date:   Wed Aug 24 14:55:09 2016 -0300

    efl_net_dialer_http: dispatch headers even if no data.
    
    in some cases we get headers but no data to receive or send, then we
    must still say headers were done and we're connected.
---
 src/lib/ecore_con/efl_net_dialer_http.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/ecore_con/efl_net_dialer_http.c 
b/src/lib/ecore_con/efl_net_dialer_http.c
index 2f51499..d3a4b55 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.c
+++ b/src/lib/ecore_con/efl_net_dialer_http.c
@@ -890,6 +890,8 @@ _efl_net_dialer_http_receive_header(const char *buffer, 
size_t count, size_t nit
 
    if ((!h->key[0]) && (!h->value || !h->value[0]))
      {
+        if (!pd->connected) _efl_net_dialer_http_connected(o, pd);
+        if (pd->pending_headers_done) _efl_net_dialer_http_headers_done(o, pd);
         free(h);
         return len;
      }

-- 


Reply via email to