mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
add new unit test, fix minor bugs
This commit is contained in:
parent
f8e55ea307
commit
1730e6d964
7 changed files with 30 additions and 2 deletions
|
@ -119,7 +119,7 @@ class HTTPSession extends CurlSession {
|
|||
|
||||
static async create_options(params) {
|
||||
let body = null;
|
||||
let request_obj = new Request("/", params);
|
||||
let request_obj = new Request("http://127.0.0.1/", params);
|
||||
let array_buffer = await request_obj.arrayBuffer();
|
||||
if (array_buffer.byteLength > 0) {
|
||||
body = new Uint8Array(array_buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue