commit
b8b942c6bf
|
@ -59,6 +59,10 @@ bool httpParseURL(HttpContext* pContext) {
|
|||
HttpParser* pParser = &pContext->parser;
|
||||
char* pSeek;
|
||||
char* pEnd = strchr(pParser->pLast, ' ');
|
||||
if (pEnd == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (*pParser->pLast != '/') {
|
||||
httpSendErrorResp(pContext, HTTP_UNSUPPORT_URL);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue