summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-08-24 14:55:09 -0300
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-08-30 00:35:27 -0300
commit68ea5bd025a6582c96860ee875f4510d1f0d0c23 (patch)
tree01b5852269a2da74f1a4e6ecb78b303d84344369
parentd8caade348b0aa5c43d048934c13565da9519a6c (diff)
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.
-rw-r--r--src/lib/ecore_con/efl_net_dialer_http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_con/efl_net_dialer_http.c b/src/lib/ecore_con/efl_net_dialer_http.c
index 2f514997a9..d3a4b55e8e 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
890 890
891 if ((!h->key[0]) && (!h->value || !h->value[0])) 891 if ((!h->key[0]) && (!h->value || !h->value[0]))
892 { 892 {
893 if (!pd->connected) _efl_net_dialer_http_connected(o, pd);
894 if (pd->pending_headers_done) _efl_net_dialer_http_headers_done(o, pd);
893 free(h); 895 free(h);
894 return len; 896 return len;
895 } 897 }