mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refie http consts.
This commit is contained in:
parent
573952e2fc
commit
c46b3bd193
4 changed files with 106 additions and 99 deletions
|
@ -54,8 +54,8 @@ bool SrsApiRoot::is_handler_valid(SrsHttpMessage* req, int& status_code, std::st
|
|||
}
|
||||
|
||||
if (req->match()->matched_url.length() != 1) {
|
||||
status_code = HTTP_NotFound;
|
||||
reason_phrase = HTTP_NotFound_str;
|
||||
status_code = SRS_CONSTS_HTTP_NotFound;
|
||||
reason_phrase = SRS_CONSTS_HTTP_NotFound_str;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue