Skip to content

Commit 5ac5ff2

Browse files
authored
Merge pull request #200 from ityuhui/yh-32bit-support-0804
Support 32bit in postdata
2 parents 4aa8bb7 + 8ed333e commit 5ac5ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/src/apiClient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ char *assembleHeaderField(char *key, char *value) {
185185
void postData(CURL *handle, const char *bodyParameters) {
186186
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, bodyParameters);
187187
curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE_LARGE,
188-
strlen(bodyParameters));
188+
(curl_off_t)strlen(bodyParameters));
189189
}
190190

191191
int lengthOfKeyPair(keyValuePair_t *keyPair) {

0 commit comments

Comments
 (0)