mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1657, fix the jsonp bug
This commit is contained in:
parent
fc21b31714
commit
d67b050935
8 changed files with 60 additions and 53 deletions
|
@ -52,11 +52,11 @@ SrsHttpParser::~SrsHttpParser()
|
|||
srs_freep(header);
|
||||
}
|
||||
|
||||
srs_error_t SrsHttpParser::initialize(enum http_parser_type type, bool allow_jsonp)
|
||||
srs_error_t SrsHttpParser::initialize(enum http_parser_type type)
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
jsonp = allow_jsonp;
|
||||
jsonp = false;
|
||||
type_ = type;
|
||||
|
||||
// Initialize the parser, however it's not necessary.
|
||||
|
@ -75,6 +75,11 @@ srs_error_t SrsHttpParser::initialize(enum http_parser_type type, bool allow_jso
|
|||
return err;
|
||||
}
|
||||
|
||||
void SrsHttpParser::set_jsonp(bool allow_jsonp)
|
||||
{
|
||||
jsonp = allow_jsonp;
|
||||
}
|
||||
|
||||
srs_error_t SrsHttpParser::parse_message(ISrsReader* reader, ISrsHttpMessage** ppmsg)
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue