fix(standalone): OPML export failing

This commit is contained in:
Elian Doran
2026-03-28 11:20:11 +02:00
parent 362429451d
commit 82bac7b18f

View File

@@ -166,6 +166,7 @@ function createAsyncRoute(router: BrowserRouter) {
* Used for route handlers (like image routes) that write directly to the response.
*/
function createMockExpressResponse() {
const chunks: string[] = [];
const res = {
_used: false,
_status: 200,
@@ -192,6 +193,15 @@ function createMockExpressResponse() {
res._used = true;
res._status = code;
return res;
},
write(chunk: string) {
chunks.push(chunk);
return true;
},
end() {
res._used = true;
res._body = chunks.join("");
return res;
}
};
return res;