diff --git a/swagger.go b/swagger.go index 445ecbc..5151f6f 100644 --- a/swagger.go +++ b/swagger.go @@ -69,7 +69,7 @@ func CustomWrapHandler(config *Config, h *webdav.Handler) gin.HandlerFunc { } else if strings.HasSuffix(path, ".js") { c.Header("Content-Type", "application/javascript") } else if strings.HasSuffix(path, ".json") { - c.Header("Content-Type", "application/json") + c.Header("Content-Type", "application/json; charset=utf-8") } switch path {