1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Micro changes and refines.

This commit is contained in:
winlin 2022-09-30 17:57:48 +08:00
parent 173c683566
commit 378bffa34f
20 changed files with 110 additions and 119 deletions

View file

@ -19,6 +19,7 @@ using namespace std;
#include <srs_core_autofree.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_protocol_conn.hpp>
#include <srs_protocol_http_stack.hpp>
SrsHttpParser::SrsHttpParser()
{
@ -451,24 +452,8 @@ string SrsHttpMessage::method_str()
if (jsonp && !jsonp_method.empty()) {
return jsonp_method;
}
if (is_http_get()) {
return "GET";
}
if (is_http_put()) {
return "PUT";
}
if (is_http_post()) {
return "POST";
}
if (is_http_delete()) {
return "DELETE";
}
if (is_http_options()) {
return "OPTIONS";
}
return "OTHER";
return http_method_str((http_method)_method);
}
bool SrsHttpMessage::is_http_get()