From 17e980b6f29045ff137d656221da8894a32f7c6e Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 1 Jun 2021 16:34:13 +0800 Subject: [PATCH] [TD-4456]: fix post body size --- src/plugins/http/src/httpRestHandle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/http/src/httpRestHandle.c b/src/plugins/http/src/httpRestHandle.c index aee6d1a5d0..a285670d20 100644 --- a/src/plugins/http/src/httpRestHandle.c +++ b/src/plugins/http/src/httpRestHandle.c @@ -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; -- GitLab