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

Àlex Fiestas afiestas at kde.org
Thu Jan 31 16:15:38 GMT 2013


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

Review request for kdelibs, Dawit Alemayehu and Andreas Hartmetz.


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: http://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/20130131/b0dcadd6/attachment.htm>


More information about the kde-core-devel mailing list