1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #1657, Support HTTPS API

This commit is contained in:
winlin 2020-11-06 15:05:01 +08:00
parent 7916214e27
commit 272ca9d0f6
20 changed files with 647 additions and 11 deletions

View file

@ -916,6 +916,17 @@ srs_error_t SrsHttpUri::initialize(string _url)
return err;
}
void SrsHttpUri::set_schema(std::string v)
{
schema = v;
// Update url with new schema.
size_t pos = url.find("://");
if (pos != string::npos) {
url = schema + "://" + url.substr(pos + 3);
}
}
string SrsHttpUri::get_url()
{
return url;