From 9fcb6b34a8a819ecbd54d38408e71ecd0e1866a4 Mon Sep 17 00:00:00 2001 From: zhangjingwei Date: Fri, 24 Nov 2023 08:48:59 +0800 Subject: [PATCH] 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 --- .../network/containers/LoadBalancers/Listener/Actions/Edit.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/network/containers/LoadBalancers/Listener/Actions/Edit.jsx b/src/pages/network/containers/LoadBalancers/Listener/Actions/Edit.jsx index 0f0920fa..9c9bc035 100644 --- a/src/pages/network/containers/LoadBalancers/Listener/Actions/Edit.jsx +++ b/src/pages/network/containers/LoadBalancers/Listener/Actions/Edit.jsx @@ -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) {