diff --git a/desktop/src/main/stream.ts b/desktop/src/main/stream.ts index 5f9ce55732b99deb6410e464ccdb1097b5b2214e..f1ebe698e74048a4243411642da64dc9d47a514e 100644 --- a/desktop/src/main/stream.ts +++ b/desktop/src/main/stream.ts @@ -31,8 +31,8 @@ export const registerStreamProtocol = () => { const url = request.url; const { host, pathname } = new URL(url); switch (host) { - /* stream://write//path/to/file */ - /* -host/pathname----- */ + /* stream://write/path/to/file */ + /* host-pathname----- */ case "write": try { await writeStream(pathname, request.body); diff --git a/web/apps/photos/src/utils/native-stream.ts b/web/apps/photos/src/utils/native-stream.ts index b7617e4afa9144890fee21d82ec34dc5978382d2..809aa9e209bf8d7528289b9974383ac54100bb96 100644 --- a/web/apps/photos/src/utils/native-stream.ts +++ b/web/apps/photos/src/utils/native-stream.ts @@ -25,7 +25,7 @@ export const writeStream = async (path: string, stream: ReadableStream) => { // In another twist, the TypeScript libdom.d.ts does not include the // "duplex" parameter, so we need to cast to get TypeScript to let this code // through. e.g. see https://github.com/node-fetch/node-fetch/issues/1769 - const req = new Request(`stream://write/${path}`, { + const req = new Request(`stream://write${path}`, { // GET can't have a body method: "POST", body: stream,