summaryrefslogtreecommitdiffstats
path: root/src/WebAdmin.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-02-20 12:33:27 +0100
committerMattes D <github@xoft.cz>2016-03-01 16:19:59 +0100
commit71a1fa81f00cf897d91e8f76cc7e646dd61cc2ff (patch)
tree5fb4f8639032691b3a09a20b81692ae304693578 /src/WebAdmin.cpp
parentWebAdmin uses the new HTTP parser framework. (diff)
downloadcuberite-71a1fa81f00cf897d91e8f76cc7e646dd61cc2ff.tar
cuberite-71a1fa81f00cf897d91e8f76cc7e646dd61cc2ff.tar.gz
cuberite-71a1fa81f00cf897d91e8f76cc7e646dd61cc2ff.tar.bz2
cuberite-71a1fa81f00cf897d91e8f76cc7e646dd61cc2ff.tar.lz
cuberite-71a1fa81f00cf897d91e8f76cc7e646dd61cc2ff.tar.xz
cuberite-71a1fa81f00cf897d91e8f76cc7e646dd61cc2ff.tar.zst
cuberite-71a1fa81f00cf897d91e8f76cc7e646dd61cc2ff.zip
Diffstat (limited to '')
-rw-r--r--src/WebAdmin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WebAdmin.cpp b/src/WebAdmin.cpp
index 95a1bcdbd..08e90ea13 100644
--- a/src/WebAdmin.cpp
+++ b/src/WebAdmin.cpp
@@ -314,7 +314,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPServerConnection & a_Connection, cHTT
{
if (m_TemplateScript.Call("ShowPage", this, &TemplateRequest, cLuaState::Return, Template))
{
- cHTTPResponse Resp;
+ cHTTPOutgoingResponse Resp;
Resp.SetContentType("text/html");
a_Connection.Send(Resp);
a_Connection.Send(Template.c_str(), Template.length());
@@ -373,7 +373,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPServerConnection & a_Connection, cHTT
Printf(NumChunks, "%d", cRoot::Get()->GetTotalChunkCount());
ReplaceString(Template, "{NUMCHUNKS}", NumChunks);
- cHTTPResponse Resp;
+ cHTTPOutgoingResponse Resp;
Resp.SetContentType("text/html");
a_Connection.Send(Resp);
a_Connection.Send(Template.c_str(), Template.length());
@@ -388,7 +388,7 @@ void cWebAdmin::HandleRootRequest(cHTTPServerConnection & a_Connection, cHTTPInc
{
UNUSED(a_Request);
- cHTTPResponse Resp;
+ cHTTPOutgoingResponse Resp;
Resp.SetContentType("text/html");
a_Connection.Send(Resp);
a_Connection.Send(m_LoginTemplate);
@@ -441,7 +441,7 @@ void cWebAdmin::HandleFileRequest(cHTTPServerConnection & a_Connection, cHTTPInc
}
// Send the response:
- cHTTPResponse Resp;
+ cHTTPOutgoingResponse Resp;
Resp.SetContentType(ContentType);
a_Connection.Send(Resp);
a_Connection.Send(Content);