Fixed fr::HttpResponse parse bug

The spacing between the header and the body was being added into the body.
This commit is contained in:
Fred Nicolson
2017-05-24 14:38:01 +01:00
parent e0f68fb037
commit b2bb3ce60b

View File

@@ -28,9 +28,8 @@ namespace fr
parse_header(header_end);
body.clear();
}
content_length += 2; //The empty line between header and data
body += response_data.substr(header_end, response_data.size() - header_end);
body += response_data.substr(header_end + 4, response_data.size() - header_end - 4);
}
return body.size() < content_length;