From 8567c9f867ea9d96fad04115523716ec198b4f53 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 3 Aug 2015 21:19:37 +0200 Subject: [PATCH] Minor fix. --- server_http.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_http.hpp b/server_http.hpp index 0fc5cc2..9f54eef 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -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)