From 68ea5bd025a6582c96860ee875f4510d1f0d0c23 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 24 Aug 2016 14:55:09 -0300 Subject: [PATCH] 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; } -- 2.7.4