mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 22:40:01 -04:00
increase libcurl's internal buffer size to 512kb
This commit is contained in:
parent
4004409650
commit
59de256621
3 changed files with 7 additions and 3 deletions
|
@ -43,7 +43,8 @@ CURL* create_request(const char* url, int request_id, DataCallback data_callback
|
|||
|
||||
curl_easy_setopt(http_handle, CURLOPT_PRIVATE, request_info);
|
||||
curl_easy_setopt(http_handle, CURLOPT_URL, url);
|
||||
curl_easy_setopt(http_handle, CURLOPT_CAINFO_BLOB , cacert_blob);
|
||||
curl_easy_setopt(http_handle, CURLOPT_CAINFO_BLOB, cacert_blob);
|
||||
curl_easy_setopt(http_handle, CURLOPT_BUFFERSIZE, 512*1024);
|
||||
|
||||
//callbacks to pass the response data back to js
|
||||
curl_easy_setopt(http_handle, CURLOPT_WRITEFUNCTION, &write_function);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "libcurl.js",
|
||||
"version": "0.6.17",
|
||||
"version": "0.6.18",
|
||||
"description": "A port of libcurl to WebAssembly, for proxying HTTPS requests from the browser with full TLS encryption",
|
||||
"main": "libcurl.mjs",
|
||||
"exports": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue