Have the thing compiling and delivering pages.
This commit is contained in:
parent
b6311f80d4
commit
527d2f6f4d
@ -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;
|
||||
|
BIN
HTTPServer
BIN
HTTPServer
Binary file not shown.
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user