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

HTTP: Support API with body, for RTC.

This commit is contained in:
winlin 2022-08-28 13:18:20 +08:00
parent 457738f6eb
commit f492d8b03a
3 changed files with 88 additions and 5 deletions

View file

@ -389,11 +389,6 @@ srs_error_t SrsHttpxConn::on_http_message(ISrsHttpMessage* r, SrsHttpResponseWri
// For each session, we use short-term HTTP connection.
SrsHttpHeader* hdr = w->header();
hdr->set("Connection", "Close");
// Not support HTTP request with body.
if (r->content_length() > 0) {
return srs_error_new(ERROR_HTTP_WITH_BODY, "with %d body", r->content_length());
}
return err;
}