提交 1b148645 编写于 作者: J Jeroen van Baarsen

Set charset encoding to UTF-8 for snippets

Fixes #2678
Signed-off-by: NJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
上级 cb33279a
......@@ -63,7 +63,7 @@ class Projects::SnippetsController < Projects::ApplicationController
def raw
send_data(
@snippet.content,
type: "text/plain",
type: 'text/plain; charset=utf-8',
disposition: 'inline',
filename: @snippet.file_name
)
......
......@@ -86,7 +86,7 @@ class SnippetsController < ApplicationController
def raw
send_data(
@snippet.content,
type: "text/plain",
type: 'text/plain; charset=utf-8',
disposition: 'inline',
filename: @snippet.file_name
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册