minor update
This commit is contained in:
parent
6c9b769915
commit
d22382959c
1 changed files with 1 additions and 1 deletions
|
|
@ -75,6 +75,7 @@ namespace SimpleWeb {
|
||||||
std::ostream content(&streambuf);
|
std::ostream content(&streambuf);
|
||||||
|
|
||||||
size_t length;
|
size_t length;
|
||||||
|
std::string buffer;
|
||||||
do {
|
do {
|
||||||
size_t bytes_transferred = boost::asio::read_until(*socket, response->streambuf, "\r\n");
|
size_t bytes_transferred = boost::asio::read_until(*socket, response->streambuf, "\r\n");
|
||||||
std::string line;
|
std::string line;
|
||||||
|
|
@ -90,7 +91,6 @@ namespace SimpleWeb {
|
||||||
boost::asio::transfer_exactly(2+length-num_additional_bytes));
|
boost::asio::transfer_exactly(2+length-num_additional_bytes));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string buffer;
|
|
||||||
buffer.resize(length);
|
buffer.resize(length);
|
||||||
response->content.read(&buffer[0], length);
|
response->content.read(&buffer[0], length);
|
||||||
content.write(&buffer[0], length);
|
content.write(&buffer[0], length);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue