Have the thing compiling and delivering pages.
This commit is contained in:
1 parent
b6311f80d4
commit
527d2f6f4d
3 files changed
+3
-3
No files matched your search
+2
-2
@@ -47,8 +47,8 @@ namespace http {
|
|||||||
coreutils::Log(coreutils::LOG_DEBUG_1) << "Sending response to client..." << content.str();
|
coreutils::Log(coreutils::LOG_DEBUG_1) << "Sending response to client..." << content.str();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
httpRequest->response.setCode("404");
|
httpRequest->response.setCode("200");
|
||||||
httpRequest->response.setText("Not Found");
|
httpRequest->response.setText("OK");
|
||||||
data << httpRequest->response.getResponse(content.str());
|
data << httpRequest->response.getResponse(content.str());
|
||||||
}
|
}
|
||||||
delete httpRequest;
|
delete httpRequest;
|
||||||
|
|||||||
BIN
Binary file not shown.
+1
-1
@@ -70,7 +70,7 @@ namespace http {
|
|||||||
data << "" << std::endl;
|
data << "" << std::endl;
|
||||||
data << " <script src=\"/__editview_js\" />" << 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user