mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
commit
b23755ad73
@ -38,7 +38,7 @@ int DemoServantImp::doRequest(TarsCurrentPtr current, vector<char> &buffer)
|
|||||||
int DemoServantImp::doRequest(const TC_HttpRequest &req, TC_HttpResponse &rsp)
|
int DemoServantImp::doRequest(const TC_HttpRequest &req, TC_HttpResponse &rsp)
|
||||||
{
|
{
|
||||||
string msg = "Hello Tars!";
|
string msg = "Hello Tars!";
|
||||||
rsp.setContentType("html/text");
|
rsp.setContentType("text/html");
|
||||||
rsp.setResponse(msg.c_str(), msg.size());
|
rsp.setResponse(msg.c_str(), msg.size());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user