正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| ... | ... | @@ -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 | ... | ... |
请
注册
或
登录
后发表评论