diff options
| author | cflip <cflip@cflip.net> | 2022-09-17 10:26:22 -0600 | 
|---|---|---|
| committer | cflip <cflip@cflip.net> | 2022-09-17 11:12:16 -0600 | 
| commit | 105ebbce53ce3e28890c08961168dd21760676b9 (patch) | |
| tree | 30ec3fc2559fe085da0610818b0fd01efd34e191 /src/main.cpp | |
| parent | ac12ef846b343849317539c84258ab0c5e6b542f (diff) | |
Pass HTTP headers from CGI output into our HttpResponse class
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;  } | 
