support 32bit in postdata (#16238)

This commit is contained in:
hai22yu23 2023-08-03 18:13:42 +08:00 committed by GitHub
parent 45d8027bb4
commit cb56e50e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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