mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +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);
|
}, nullptr);
|
||||||
|
|
||||||
_parser.Parse(header);
|
_parser.Parse(header);
|
||||||
|
CHECK(_parser.Url()[0] == '/');
|
||||||
|
|
||||||
urlDecode(_parser);
|
urlDecode(_parser);
|
||||||
string cmd = _parser.Method();
|
string cmd = _parser.Method();
|
||||||
auto it = s_func_map.find(cmd);
|
auto it = s_func_map.find(cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user