[TD-4456]<fix>: fix post body size

This commit is contained in:
Minglei Jin 2021-06-01 16:34:13 +08:00
parent e604477a76
commit 17e980b6f2
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ static bool restProcessUdfRequest(HttpContext* pContext) {
}
char* sql = pContext->parser->body.str;
int len = pContext->parser->body.size;
int len = pContext->parser->body.pos;
if (sql == NULL) {
httpSendErrorResp(pContext, TSDB_CODE_HTTP_NO_SQL_INPUT);
return false;