mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:11:40 +03:00
lib1598: fix CURLOPT_POSTFIELDSIZE usage
It requires a `long` argument. Closes https://github.com/curl/curl/pull/13085
This commit is contained in:
parent
71681376d8
commit
800617fac8
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ int test(char *URL)
|
|||
|
||||
test_setopt(curl, CURLOPT_URL, URL);
|
||||
test_setopt(curl, CURLOPT_HTTPHEADER, hhl);
|
||||
test_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(post_data));
|
||||
test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(post_data));
|
||||
test_setopt(curl, CURLOPT_POSTFIELDS, post_data);
|
||||
test_setopt(curl, CURLOPT_TRAILERFUNCTION, trailers_callback);
|
||||
test_setopt(curl, CURLOPT_TRAILERDATA, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue