Skip to content

Commit

Permalink
support 32bit in postdata (#16238)
Browse files Browse the repository at this point in the history
  • Loading branch information
hai22yu23 committed Aug 3, 2023
1 parent 45d8027 commit cb56e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,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) {
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/c/src/apiClient.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,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) {
Expand Down

0 comments on commit cb56e50

Please # to comment.