Merge pull request #200 from ityuhui/yh-32bit-support-0804

Support 32bit in postdata
This commit is contained in:
Kubernetes Prow Robot
2023-08-07 12:18:32 -07:00
committed by GitHub

View File

@@ -185,7 +185,7 @@ char *assembleHeaderField(char *key, char *value) {
void postData(CURL *handle, const char *bodyParameters) {
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, bodyParameters);
curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE_LARGE,
strlen(bodyParameters));
(curl_off_t)strlen(bodyParameters));
}
int lengthOfKeyPair(keyValuePair_t *keyPair) {