barbieri pushed a commit to branch master.

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

commit da143edd8c14822b457ea8884a743b7c188da73d
Author: Gustavo Sverzut Barbieri <[email protected]>
Date:   Tue Nov 29 02:56:18 2016 -0200

    efl_net_dialer_http: POST also allows resizing.
    
    resizing the dialer results in changing the request content length,
    which is useful when uploading files AND posting data.
---
 src/lib/ecore_con/efl_net_dialer_http.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_con/efl_net_dialer_http.c 
b/src/lib/ecore_con/efl_net_dialer_http.c
index 531b499..ffd1e46 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.c
+++ b/src/lib/ecore_con/efl_net_dialer_http.c
@@ -1806,7 +1806,8 @@ _efl_net_dialer_http_efl_io_sizer_resize(Eo *o, 
Efl_Net_Dialer_Http_Data *pd, ui
    EINA_SAFETY_ON_TRUE_RETURN_VAL(size > INT64_MAX, ERANGE);
 
    pm = _efl_net_dialer_http_primary_mode_effective_get(pd);
-   if (pm == EFL_NET_DIALER_HTTP_PRIMARY_MODE_UPLOAD)
+   if ((pm == EFL_NET_DIALER_HTTP_PRIMARY_MODE_UPLOAD) ||
+       (strcmp(pd->method, "POST") == 0))
      {
         efl_net_dialer_http_request_content_length_set(o, size);
         return 0;

-- 


Reply via email to