Fix the issure #126, Taosd may crash while an invalid token input
This commit is contained in:
parent
6f3a448b22
commit
412db1ab0a
|
@ -214,6 +214,7 @@ bool httpParseHead(HttpContext* pContext) {
|
|||
}
|
||||
} else if (strncasecmp(pParser->pLast + 15, "Taosd ", 6) == 0) {
|
||||
httpSendErrorResp(pContext, HTTP_INVALID_TAOSD_AUTH_TOKEN);
|
||||
return false;
|
||||
} else {
|
||||
httpSendErrorResp(pContext, HTTP_INVALID_AUTH_TOKEN);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue