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