forked from enlightenment/efl
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.
This commit is contained in:
parent
4aca800bde
commit
da143edd8c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue