From 42436d301ae8c18020c241db82e969e6a60aa62e Mon Sep 17 00:00:00 2001
From: gjahn <gregor.jahn@bht-berlin.de>
Date: Wed, 20 Dec 2023 00:42:07 +0100
Subject: [PATCH] Logs: use 'Accept' header if Content-Type is not defined

---
 routing/routes.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/routing/routes.go b/routing/routes.go
index 72ebb06..f1439c4 100644
--- a/routing/routes.go
+++ b/routing/routes.go
@@ -35,7 +35,7 @@ func SetRoutes( router *f.App, config *configuration.Config, store state.Store,
             log.Printf( "%s %s  mime:%s  agent:%s",
                 c.Method(),
                 c.Path(),
-                c.Get( f.HeaderContentType ),
+                c.Get( f.HeaderContentType, c.Get( f.HeaderAccept, "" ) ),
                 c.Get( f.HeaderUserAgent ),
             )
             return c.Next()
-- 
GitLab