We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CHttpRequest::PostJson
1 parent aa30d59 commit 8a174fcCopy full SHA for 8a174fc
1 file changed
src/engine/shared/http_request.cpp
@@ -52,7 +52,7 @@ void CHttpRequest::PostData(const unsigned char *pPost, int Size)
52
53
void CHttpRequest::PostJson(const char *pJson)
54
{
55
- PostData((const unsigned char *) pJson, str_length(pJson) + 1);
+ PostData((const unsigned char *) pJson, str_length(pJson));
56
AddHeader("Content-Type: application/json");
57
}
58
0 commit comments