We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe66e72 commit 27ed525Copy full SHA for 27ed525
1 file changed
src/lceasy.c
@@ -410,8 +410,8 @@ static int lcurl_easy_unset_HTTPPOST(lua_State *L){
410
we also unset it to be sure that there no way to
411
call default curl reader with our READDATA
412
*/
413
- curl_easy_setopt(p->curl, CURLOPT_READFUNCTION, (void*)0);
414
- curl_easy_setopt(p->curl, CURLOPT_READDATA, 0);
+ curl_easy_setopt(p->curl, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(p->curl, CURLOPT_READDATA, NULL);
415
}
416
lcurl_storage_remove_i(L, p->storage, CURLOPT_HTTPPOST);
417
0 commit comments