mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix bug for HTTP write jsonp for srs-console.
This commit is contained in:
parent
40f6ecaee2
commit
a35a7f915e
5 changed files with 52 additions and 21 deletions
|
@ -160,7 +160,7 @@ public:
|
|||
// w->header()->set_content_type("text/plain; charset=utf-8");
|
||||
// w->header()->set_content_length(msg.length());
|
||||
// w->write_header(SRS_CONSTS_HTTP_OK);
|
||||
// w->write((char*)msg.data(), (int)msg.length());
|
||||
// w->write((char*)msg.data(), (int)msg.length()); // write N times, N>0
|
||||
// w->final_request(); // optional flush.
|
||||
// Usage 2, response with HTTP code only, zero content length.
|
||||
// ISrsHttpResponseWriter* w; // create or get response.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue