提交 38a1607639321888fb510f45da3d9c44cce57f45

作者 WZP 万忠平
1 个父辈 b982cbf9

wan

... ... @@ -23,6 +23,7 @@
23 23 #include "dmplogger.h"
24 24 #include "dmpapiutils.h"
25 25 #include "dmpservermanager.h"
  26 +#include "dmpserverutils.h"
26 27
27 28 DmpManagerApiHandler::DmpManagerApiHandler()
28 29 {
... ... @@ -123,8 +124,12 @@ void DmpManagerApiHandler::regService(const DmpServerApiContext &context) const
123 124 }
124 125 if(context.manager()->publish(serverType, name, capabilities, project)) {
125 126 LOGGER_INFO("服务发布成功");
126   - //context.response()->write("{\"status\":\"true\",\"message\":\"服务发布成功\"}");
127 127 context.response()->write("{\"status\":\"true\",\"message\":\"Pulish service successful!\"}");
  128 + // std::string projData;
  129 + // DmpServerUtils::Base64Decode(project, &projData);
  130 + // context.response()->removeHeader("Content-Type");
  131 + // context.response()->setHeader("Content-Type", "text/xml;charset=utf-8");
  132 + // context.response()->write(projData);
128 133 }
129 134 }
130 135 else
... ...
注册登录 后发表评论