Have the thing compiling and delivering pages.

This commit is contained in:
Brad Arant 2020-12-03 09:10:08 -08:00
parent b6311f80d4
commit 527d2f6f4d
3 changed files with 3 additions and 3 deletions

View File

@ -47,8 +47,8 @@ namespace http {
coreutils::Log(coreutils::LOG_DEBUG_1) << "Sending response to client..." << content.str();
}
else {
httpRequest->response.setCode("404");
httpRequest->response.setText("Not Found");
httpRequest->response.setCode("200");
httpRequest->response.setText("OK");
data << httpRequest->response.getResponse(content.str());
}
delete httpRequest;

Binary file not shown.

View File

@ -70,7 +70,7 @@ namespace http {
data << "" << std::endl;
data << " <script src=\"/__editview_js\" />" << std::endl;
httpRequest->response.addHeader("Content-Type", "script/javascript");
httpRequest->response.addHeader("Content-Type", "text/html");
return 0;
}