mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
Desktop: MCP: Return correct API response type (#16144)
This commit is contained in:
1 parent
391cdf7f15
commit
6e8fc6cd75
1 file changed
+1
-1
@@ -150,7 +150,7 @@ export default class ClipperServer {
|
||||
};
|
||||
|
||||
const writeResponseJson = (code: number, object: unknown) => {
|
||||
writeCorsHeaders(code);
|
||||
writeCorsHeaders(code, 'application/json');
|
||||
response.write(JSON.stringify(object));
|
||||
response.end();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user