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