1
0
Fork 0
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:
winlin 2015-12-28 18:02:20 +08:00
parent 190db75835
commit 96a4428bdb
3 changed files with 19 additions and 1 deletions

View file

@ -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;
}