diff --git a/charts/fsm/components/scripts.tar.gz b/charts/fsm/components/scripts.tar.gz index d39023246..63f438d14 100644 Binary files a/charts/fsm/components/scripts.tar.gz and b/charts/fsm/components/scripts.tar.gz differ diff --git a/charts/fsm/components/scripts/gateways/filters/http/AccessLog.js b/charts/fsm/components/scripts/gateways/filters/http/AccessLog.js index 7c008c199..c709a52af 100644 --- a/charts/fsm/components/scripts/gateways/filters/http/AccessLog.js +++ b/charts/fsm/components/scripts/gateways/filters/http/AccessLog.js @@ -23,8 +23,8 @@ export default function (config) { `${response.head?.statusText || ''}`, `"${headers['user-agent'] || ''}"`, `${response.headTime - $ctx.headTime}ms`, - `${$ctx.tail.headSize + $ctx.tail.bodySize}`, - `${response.tail ? response.tail.headSize + response.tail.bodySize : 0}`, + `${$ctx.tail ? ($ctx.tail?.headSize || 0 + $ctx.tail?.bodySize || 0) : 0}`, + `${response.tail ? (response.tail?.headSize || 0 + response.tail?.bodySize || 0) : 0}`, `"${$ctx.backendResource?.metadata?.name || ''}"`, `"${target || ''}"` )