mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +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