mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Fix the OPTIONS read, no infinited chunked mode
This commit is contained in:
parent
a273298e63
commit
9ff8bff601
3 changed files with 76 additions and 0 deletions
|
|
@ -264,6 +264,11 @@ public:
|
|||
// while buffer is a fast cache which may have cached some data from reader.
|
||||
SrsHttpResponseReader(SrsHttpMessage* msg, ISrsReader* reader, SrsFastStream* buffer);
|
||||
virtual ~SrsHttpResponseReader();
|
||||
public:
|
||||
// User close the HTTP response reader.
|
||||
// For example, OPTIONS has no body, no content-length and not chunked,
|
||||
// so we must close it(set to eof) to avoid reading the response body.
|
||||
void close();
|
||||
// Interface ISrsHttpResponseReader
|
||||
public:
|
||||
virtual bool eof();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue