diff --git a/servant/script/http_demo/DemoServantImp.cpp b/servant/script/http_demo/DemoServantImp.cpp index edd29dc..a7e6fe3 100644 --- a/servant/script/http_demo/DemoServantImp.cpp +++ b/servant/script/http_demo/DemoServantImp.cpp @@ -38,7 +38,7 @@ int DemoServantImp::doRequest(TarsCurrentPtr current, vector &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; }