mirror of
https://github.com/curl/curl.git
synced 2025-01-12 13:55:11 +08: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
@ -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…
Reference in New Issue
Block a user