From 130eca3b2d3d404038876a1dfdd400963e770639 Mon Sep 17 00:00:00 2001 From: nazeh Date: Fri, 17 Jan 2025 14:58:18 +0300 Subject: [PATCH] chore(js): publish @synonymdev/pubky@0.4.0-rc3 --- pubky/pkg/package.json | 2 +- pubky/src/wasm/http.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pubky/pkg/package.json b/pubky/pkg/package.json index 34e6409..657e1d0 100644 --- a/pubky/pkg/package.json +++ b/pubky/pkg/package.json @@ -2,7 +2,7 @@ "name": "@synonymdev/pubky", "type": "module", "description": "Pubky client", - "version": "0.4.0-rc2", + "version": "0.4.0-rc3", "license": "MIT", "repository": { "type": "git", diff --git a/pubky/src/wasm/http.rs b/pubky/src/wasm/http.rs index eea495d..2fe2291 100644 --- a/pubky/src/wasm/http.rs +++ b/pubky/src/wasm/http.rs @@ -150,8 +150,11 @@ impl Client { url.set_port(Some(http_port)) .expect("coultdn't use the resolved endpoint's port"); } else { - url.set_port(Some(e.port())) - .expect("coultdn't use the resolved endpoint's port"); + // TODO: where does port zero come from? + if e.port() != 0 { + url.set_port(Some(e.port())) + .expect("coultdn't use the resolved endpoint's port"); + } } url.set_host(Some(e.domain()))