From 246f4461426f30513dd9392b9dd69ed0f2fe5407 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 3 Sep 2021 18:02:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E4=BF=9Dhttp=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=90=88=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 2d47e566..95c90725 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -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);