mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the http request parse. edge retry timeout.
This commit is contained in:
parent
190db75835
commit
96a4428bdb
3 changed files with 19 additions and 1 deletions
|
@ -830,6 +830,11 @@ SrsRequest* SrsHttpMessage::to_request(string vhost)
|
|||
srs_discovery_tc_url(req->tcUrl, req->schema, req->host, req->vhost, req->app, req->port, req->param);
|
||||
req->strip();
|
||||
|
||||
// reset the host to http request host.
|
||||
if (req->host == SRS_CONSTS_RTMP_DEFAULT_VHOST) {
|
||||
req->host = _uri->get_host();
|
||||
}
|
||||
|
||||
return req;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue