Review Request 108685: Make it possible to overwrite content-lenght using metaData

Àlex Fiestas afiestas at kde.org
Sat Jul 11 21:29:38 BST 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/108685/
-----------------------------------------------------------

(Updated jul. 11, 2015, 8:29 p.m.)


Status
------

This change has been discarded.


Review request for kdelibs, Dawit Alemayehu and Andreas Hartmetz.


Repository: kdelibs


Description
-------

When submitting a Content-Type: multipart/related using AsyncDataEnabled you need to specify the Content-Length of the whole thing you are trying to send, not just of the first chunk of the data. http::SendBody will append the Content-Length using the length of the first chunk of data automatically.

This patch adds the possibility of indicating the Content-Lenght using metadata "content-length".

Another option will be using the data set in "setTotalSize" in case it makes all the trip down to the kioslave.

Also, is there any case where we want AsyncDataEnabled but we don't need to specify the content-length? 


Diffs
-----

  kioslave/http/http.cpp 2d139a9 

Diff: https://git.reviewboard.kde.org/r/108685/diff/


Testing
-------


Thanks,

Àlex Fiestas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20150711/bf0d23ac/attachment.htm>


More information about the kde-core-devel mailing list