1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

rename version to versions

This commit is contained in:
winlin 2014-04-03 14:17:00 +08:00
parent 4a40075f68
commit 0ae23d7556

View file

@ -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)