Skip to content
Snippets Groups Projects
Commit 42436d30 authored by gjahn's avatar gjahn
Browse files

Logs: use 'Accept' header if Content-Type is not defined

parent a64565a1
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment