diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index cec6d3e..2b93b07 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -74,8 +74,7 @@ static HttpResponse serve_from_cgi(const std::string& executable_path, HttpReque // TODO: We should be able to construct a repsonse from an entire string // instead of always needing to individually set headers and content. response.set_status_code(HttpStatusCode::OK); - response.add_header("Content-Type", "text/plain"); - response.set_content(sstream.str()); + response.add_headers_and_content(sstream.str()); return response; } |