mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-06 10:57:50 +08:00
确保http请求合法
This commit is contained in:
parent
5f2e4ff2c0
commit
246f446142
@ -59,6 +59,8 @@ ssize_t HttpSession::onRecvHeader(const char *header,size_t len) {
|
||||
}, nullptr);
|
||||
|
||||
_parser.Parse(header);
|
||||
CHECK(_parser.Url()[0] == '/');
|
||||
|
||||
urlDecode(_parser);
|
||||
string cmd = _parser.Method();
|
||||
auto it = s_func_map.find(cmd);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user