mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
gzip: plugin readme content set explicitly
Macaron's gzip middleware tries to automatically figure out the content type for a file when gzipped and seems to mostly fail with plugin readmes. This change sets the content type to plain text. Fixes #9344. Ref #5952.
This commit is contained in:
parent
5e4bbfb08e
commit
8423260f58
@ -158,7 +158,9 @@ func GetPluginMarkdown(c *middleware.Context) Response {
|
||||
|
||||
return ApiError(500, "Could not get markdown file", err)
|
||||
} else {
|
||||
return Respond(200, content)
|
||||
resp := Respond(200, content)
|
||||
resp.Header("Content-Type", "text/plain; charset=utf-8")
|
||||
return resp
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user