mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
Merge branch 'develop' into merge/develop
This commit is contained in:
commit
ca03c53c40
1 changed files with 4 additions and 0 deletions
|
@ -322,6 +322,10 @@ srs_error_t SrsHttpClient::post(string path, string req, ISrsHttpMessage** ppmsg
|
|||
return srs_error_wrap(err, "http: connect server");
|
||||
}
|
||||
|
||||
if (path.size() == 0) {
|
||||
path = "/";
|
||||
}
|
||||
|
||||
// send POST request to uri
|
||||
// POST %s HTTP/1.1\r\nHost: %s\r\nContent-Length: %d\r\n\r\n%s
|
||||
std::stringstream ss;
|
||||
|
|
Loading…
Reference in a new issue