[TD-4456]<fix>: fix post body size
This commit is contained in:
parent
e604477a76
commit
17e980b6f2
|
@ -158,7 +158,7 @@ static bool restProcessUdfRequest(HttpContext* pContext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
char* sql = pContext->parser->body.str;
|
char* sql = pContext->parser->body.str;
|
||||||
int len = pContext->parser->body.size;
|
int len = pContext->parser->body.pos;
|
||||||
if (sql == NULL) {
|
if (sql == NULL) {
|
||||||
httpSendErrorResp(pContext, TSDB_CODE_HTTP_NO_SQL_INPUT);
|
httpSendErrorResp(pContext, TSDB_CODE_HTTP_NO_SQL_INPUT);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue