mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
fix headers getting cleared on resource save and hide domain type without pangolin dns
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user