mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
support latest emscripten and detect emcc version changes
This commit is contained in:
parent
627fd15e4d
commit
b2df01fd18
7 changed files with 30 additions and 11 deletions
|
@ -46,6 +46,9 @@ CURL* create_request(const char* url, int request_id, DataCallback data_callback
|
|||
curl_easy_setopt(http_handle, CURLOPT_CAINFO_BLOB, cacert_blob);
|
||||
curl_easy_setopt(http_handle, CURLOPT_BUFFERSIZE, 512*1024);
|
||||
|
||||
//emscripten doesn't support tcp nodelay anyways
|
||||
curl_easy_setopt(http_handle, CURLOPT_TCP_NODELAY, 0L);
|
||||
|
||||
//callbacks to pass the response data back to js
|
||||
curl_easy_setopt(http_handle, CURLOPT_WRITEFUNCTION, &write_function);
|
||||
curl_easy_setopt(http_handle, CURLOPT_WRITEDATA, request_info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue