From 33ad970b45dc660676aa55b299f811a671985330 Mon Sep 17 00:00:00 2001 From: Syntax <2079305+TheUltDev@users.noreply.github.com> Date: Tue, 28 Jul 2026 17:59:52 -0500 Subject: [PATCH] fix(browser): set HttpResponse.connected in the emscripten HTTP login path The __EMSCRIPTEN__ doRequest lambda filled status/body but never set connected, so HttpResponse::operator bool() was always false and every wasm HTTP login - even a successful 200 - fell into the error branch and surfaced as 'Login Error: Unknown error'. Desktop paths already return { true, ... }, which is why native login works. --- src/framework/net/httplogin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/framework/net/httplogin.cpp b/src/framework/net/httplogin.cpp index 5f0c6a5fd..d4ce90caa 100644 --- a/src/framework/net/httplogin.cpp +++ b/src/framework/net/httplogin.cpp @@ -324,6 +324,7 @@ void LoginHttp::httpLogin(const std::string& host, const std::string& path, HttpResponse response; if (fetch) { + response.connected = true; response.status = static_cast(fetch->status); response.body.assign(fetch->data, fetch->numBytes); emscripten_fetch_close(fetch);