mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
fixed leaking entities into the responses and thus increased performance of e.g. create/duplicate note
This commit is contained in:
@@ -156,6 +156,10 @@ if (utils.isElectron()) {
|
||||
}
|
||||
|
||||
if (arg.statusCode >= 200 && arg.statusCode < 300) {
|
||||
if (arg.headers['Content-Type'] === 'application/json') {
|
||||
arg.body = JSON.parse(arg.body);
|
||||
}
|
||||
|
||||
reqResolves[arg.requestId]({
|
||||
body: arg.body,
|
||||
headers: arg.headers
|
||||
|
||||
Reference in New Issue
Block a user