From 89b91ed5f4505fc71092471255eb5068763ac28b Mon Sep 17 00:00:00 2001 From: Mariano Goldman Date: Fri, 16 Feb 2024 13:10:35 -0300 Subject: [PATCH] fix logging --- content/src/controller/handlers/create-entity-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/src/controller/handlers/create-entity-handler.ts b/content/src/controller/handlers/create-entity-handler.ts index 1a3a396bf..48bda6823 100644 --- a/content/src/controller/handlers/create-entity-handler.ts +++ b/content/src/controller/handlers/create-entity-handler.ts @@ -107,8 +107,8 @@ export async function createEntity( if (issues) { console.log(`${prefix()} headers: ${context.request.headers}`) - console.log(`${prefix()} referer: ${context.request.headers['referer']}`) - console.log(`${prefix()} user-agent: ${context.request.headers['user-agent']}`) + console.log(`${prefix()} referer: ${context.request.headers.get('referer')}`) + console.log(`${prefix()} user-agent: ${context.request.headers.get('user-agent')}`) } }