mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
fix bug with response body, add test for download hash
This commit is contained in:
parent
8e5a23adf2
commit
82249fe707
6 changed files with 31 additions and 4 deletions
|
@ -41,7 +41,8 @@ class CurlSession {
|
|||
|
||||
data_callback(request_id, chunk_ptr, chunk_size) {
|
||||
let data = Module.HEAPU8.subarray(chunk_ptr, chunk_ptr + chunk_size);
|
||||
this.request_callbacks[request_id].data(data);
|
||||
let chunk = new Uint8Array(data);
|
||||
this.request_callbacks[request_id].data(chunk);
|
||||
}
|
||||
|
||||
headers_callback(request_id, chunk_ptr, chunk_size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue