forked from loafle/openapi-generator-original
support 32bit in postdata (#16238)
This commit is contained in:
parent
45d8027bb4
commit
cb56e50e0c
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user