diff --git a/trunk/src/app/srs_app_http_api.cpp b/trunk/src/app/srs_app_http_api.cpp index afe9ec085..4d239d5a6 100644 --- a/trunk/src/app/srs_app_http_api.cpp +++ b/trunk/src/app/srs_app_http_api.cpp @@ -118,7 +118,7 @@ int SrsApiV1::do_process_request(SrsSocket* skt, SrsHttpMessage* req) ss << JOBJECT_START << JFIELD_ERROR(ERROR_SUCCESS) << JFIELD_CONT << JFIELD_ORG("urls", JOBJECT_START) - << JFIELD_STR("version", "the version of SRS") << JFIELD_CONT + << JFIELD_STR("versions", "the version of SRS") << JFIELD_CONT << JFIELD_STR("authors", "the primary authors and contributors") << JOBJECT_END << JOBJECT_END; @@ -136,7 +136,7 @@ SrsApiVersion::~SrsApiVersion() bool SrsApiVersion::can_handle(const char* path, int length, const char** /*pchild*/) { - return srs_path_equals("/version", path, length); + return srs_path_equals("/versions", path, length); } int SrsApiVersion::do_process_request(SrsSocket* skt, SrsHttpMessage* req)