Minor fix.

This commit is contained in:
eidheim 2015-08-03 21:19:37 +02:00
commit 8567c9f867

View file

@ -275,7 +275,7 @@ namespace SimpleWeb {
try {
auto content_length=stoull(it->second);
boost::asio::async_read(*socket, request->streambuf,
boost::asio::transfer_exactly(stoull(it->second)-num_additional_bytes),
boost::asio::transfer_exactly(content_length-num_additional_bytes),
[this, socket, request, timer]
(const boost::system::error_code& ec, size_t /*bytes_transferred*/) {
if(timeout_content>0)