From 920f6d8fc3b029304697c9b7e5e057d3994bdc84 Mon Sep 17 00:00:00 2001 From: jay Date: Sat, 16 May 2026 03:04:07 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20import=20readBody+sendJson=20in=20server?= =?UTF-8?q?.ts=20=E2=80=94=20POST=20/pair=20was=20crashing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/remote-control/server/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/remote-control/server/server.ts b/extensions/remote-control/server/server.ts index e218bfa..115b6d3 100644 --- a/extensions/remote-control/server/server.ts +++ b/extensions/remote-control/server/server.ts @@ -51,7 +51,7 @@ import { handleInput } from "./routes/input.js"; import { handleSessions } from "./routes/sessions.js"; import type { RemoteServer, WsClient, WsServer } from "./types.js"; import { createUpgradeHandler } from "./upgrade.js"; -import { extractBearer } from "./util.js"; +import { extractBearer, readBody, sendJson } from "./util.js"; // --------------------------------------------------------------------------- // Load ws (bundled with pi) without needing @types/ws installed locally @@ -257,7 +257,7 @@ export async function startServer( host, port, pairingToken: pairingEntry.token, - fingerprint: "", + fingerprint: "NO-TLS-YET-REPLACE-IN-T-1-3", sidecarName: "pi-remote", }); res.writeHead(200, { "Content-Type": "text/plain; charset=utf-8" });