Skip to content

Commit 8a174fc

Browse files
committed
fix method CHttpRequest::PostJson
1 parent aa30d59 commit 8a174fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/engine/shared/http_request.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void CHttpRequest::PostData(const unsigned char *pPost, int Size)
5252

5353
void CHttpRequest::PostJson(const char *pJson)
5454
{
55-
PostData((const unsigned char *) pJson, str_length(pJson) + 1);
55+
PostData((const unsigned char *) pJson, str_length(pJson));
5656
AddHeader("Content-Type: application/json");
5757
}
5858

0 commit comments

Comments
 (0)