fix headers getting cleared on resource save and hide domain type without pangolin dns

This commit is contained in:
miloschwartz
2025-12-03 16:04:44 -05:00
parent 4ab4029625
commit e49d796b06
3 changed files with 30 additions and 50 deletions

View File

@@ -329,9 +329,11 @@ async function updateHttpResource(
}
}
let headers = null;
let headers = undefined;
if (updateData.headers) {
headers = JSON.stringify(updateData.headers);
} else if (updateData.headers === null) {
headers = null;
}
const updatedResource = await db