fix: fix remove insert_headers for listener

Fix insert_headers to empty object when editting listener and not setting the insert_headers

Change-Id: Ia9155afd9c4d78ed9aa0168a8c9884f1c1d939dd
This commit is contained in:
zhangjingwei 2023-11-24 08:48:59 +08:00
parent e6cd3d83eb
commit 9fcb6b34a8

View File

@ -139,6 +139,8 @@ export class Edit extends Base {
const insertHeaders = getInsertHeadersValueFromForm(insert_headers);
if (insertHeaders) {
data.insert_headers = insertHeaders;
} else {
data.insert_headers = {};
}
if (protocol === 'TERMINATED_HTTPS') {
if (default_tls_container_ref) {