From 2b1c5206861b878ec5fe0d4ead3cd65efb1ca8cf Mon Sep 17 00:00:00 2001 From: Malte Heinzelmann Date: Fri, 6 Aug 2021 18:27:53 +0200 Subject: [PATCH] Allows the SetRenderHook to override the mediaType --- tonic/tonic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic/tonic.go b/tonic/tonic.go index 8bc9290..0af582b 100644 --- a/tonic/tonic.go +++ b/tonic/tonic.go @@ -139,7 +139,7 @@ func GetRoutes() map[string]*Route { // MediaType returns the current media type (MIME) // used by the actual render hook. func MediaType() string { - return defaultMediaType + return mediaType } // GetErrorHook returns the current error hook.