mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #158: http-callback check http status code ok(200). 2.0.84
This commit is contained in:
parent
8df0f724d6
commit
9d34820c80
10 changed files with 88 additions and 14 deletions
|
@ -593,6 +593,11 @@ u_int8_t SrsHttpMessage::method()
|
|||
return (u_int8_t)_header.method;
|
||||
}
|
||||
|
||||
u_int16_t SrsHttpMessage::status_code()
|
||||
{
|
||||
return (u_int16_t)_header.status_code;
|
||||
}
|
||||
|
||||
string SrsHttpMessage::method_str()
|
||||
{
|
||||
if (is_http_get()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue