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:
parent
7916214e27
commit
272ca9d0f6
20 changed files with 647 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue