正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -118,7 +118,7 @@ int SrsApiV1::do_process_request(SrsSocket* skt, SrsHttpMessage* req) | @@ -118,7 +118,7 @@ int SrsApiV1::do_process_request(SrsSocket* skt, SrsHttpMessage* req) | ||
118 | ss << JOBJECT_START | 118 | ss << JOBJECT_START |
119 | << JFIELD_ERROR(ERROR_SUCCESS) << JFIELD_CONT | 119 | << JFIELD_ERROR(ERROR_SUCCESS) << JFIELD_CONT |
120 | << JFIELD_ORG("urls", JOBJECT_START) | 120 | << JFIELD_ORG("urls", JOBJECT_START) |
121 | - << JFIELD_STR("version", "the version of SRS") << JFIELD_CONT | 121 | + << JFIELD_STR("versions", "the version of SRS") << JFIELD_CONT |
122 | << JFIELD_STR("authors", "the primary authors and contributors") | 122 | << JFIELD_STR("authors", "the primary authors and contributors") |
123 | << JOBJECT_END | 123 | << JOBJECT_END |
124 | << JOBJECT_END; | 124 | << JOBJECT_END; |
@@ -136,7 +136,7 @@ SrsApiVersion::~SrsApiVersion() | @@ -136,7 +136,7 @@ SrsApiVersion::~SrsApiVersion() | ||
136 | 136 | ||
137 | bool SrsApiVersion::can_handle(const char* path, int length, const char** /*pchild*/) | 137 | bool SrsApiVersion::can_handle(const char* path, int length, const char** /*pchild*/) |
138 | { | 138 | { |
139 | - return srs_path_equals("/version", path, length); | 139 | + return srs_path_equals("/versions", path, length); |
140 | } | 140 | } |
141 | 141 | ||
142 | int SrsApiVersion::do_process_request(SrsSocket* skt, SrsHttpMessage* req) | 142 | int SrsApiVersion::do_process_request(SrsSocket* skt, SrsHttpMessage* req) |
-
请 注册 或 登录 后发表评论