File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,8 @@ void Session::Impl::SetBody(Body&& body) {
312
312
hasBodyOrPayload_ = true ;
313
313
auto curl = curl_->handle ;
314
314
if (curl) {
315
- curl_easy_setopt (curl, CURLOPT_POSTFIELDSIZE_LARGE, body.str ().length ());
315
+ curl_easy_setopt (curl, CURLOPT_POSTFIELDSIZE_LARGE,
316
+ static_cast <curl_off_t >(body.str ().length ()));
316
317
curl_easy_setopt (curl, CURLOPT_COPYPOSTFIELDS, body.c_str ());
317
318
}
318
319
}
@@ -321,7 +322,8 @@ void Session::Impl::SetBody(const Body& body) {
321
322
hasBodyOrPayload_ = true ;
322
323
auto curl = curl_->handle ;
323
324
if (curl) {
324
- curl_easy_setopt (curl, CURLOPT_POSTFIELDSIZE_LARGE, body.str ().length ());
325
+ curl_easy_setopt (curl, CURLOPT_POSTFIELDSIZE_LARGE,
326
+ static_cast <curl_off_t >(body.str ().length ()));
325
327
curl_easy_setopt (curl, CURLOPT_POSTFIELDS, body.c_str ());
326
328
}
327
329
}
You can’t perform that action at this time.
0 commit comments