fix bug with incorrect tcp hostnames

This commit is contained in:
ading2210 2024-09-01 21:38:03 -04:00
parent 88f2249e4e
commit 1a53a3c8f7
3 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,8 @@
# Libcurl.js Changelog:
## v0.6.13 (9/1/24):
- A minor bug where the hostname for TCP connections would be wrong in certain cases has been fixed.
## v0.6.12 (7/28/24):
- The APIs from [wisp-client-js](https://github.com/MercuryWorkshop/wisp-client-js) are now exposed at `libcurl.wisp`

View file

@ -2,4 +2,5 @@
var ?opts ?= ?undefined;
*/
var parts = addr.split("/");
url = url + parts[0] + ":" + port;
if (!url.endsWith("/")) url += "/";
url += parts[0] + ":" + port;

View file

@ -1,6 +1,6 @@
{
"name": "libcurl.js",
"version": "0.6.12",
"version": "0.6.13",
"description": "An experimental port of libcurl to WebAssembly for use in the browser.",
"main": "libcurl.mjs",
"exports": {