Merge pull request #19 from zhanleewo/patch-1

Incorrect MIME type
This commit is contained in:
ruanshudong 2019-12-13 18:52:16 +08:00 committed by GitHub
commit b23755ad73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }