From: Gustavo Sverzut Barbieri Date: Wed, 24 Aug 2016 17:55:09 +0000 (-0300) Subject: efl_net_dialer_http: dispatch headers even if no data. X-Git-Tag: upstream/1.20.0~4568 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68ea5bd025a6582c96860ee875f4510d1f0d0c23;p=platform%2Fupstream%2Fefl.git 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. --- 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; }