Commit 961dfe79 authored by Dominik Charousset's avatar Dominik Charousset

Fix send_response

parent cc218aac
...@@ -24,7 +24,7 @@ bool lower_layer::send_response(status code, std::string_view content_type, ...@@ -24,7 +24,7 @@ bool lower_layer::send_response(status code, std::string_view content_type,
begin_header(code); begin_header(code);
add_header_field("Content-Type"sv, content_type); add_header_field("Content-Type"sv, content_type);
add_header_field("Content-Length"sv, content_size); add_header_field("Content-Length"sv, content_size);
return end_header(); return end_header() && send_payload(content);
} }
bool lower_layer::send_response(status code, std::string_view content_type, bool lower_layer::send_response(status code, std::string_view content_type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment