Commit 1b148645 authored by Jeroen van Baarsen's avatar Jeroen van Baarsen

Set charset encoding to UTF-8 for snippets

Fixes #2678
Signed-off-by: default avatarJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
parent cb33279a
...@@ -63,7 +63,7 @@ class Projects::SnippetsController < Projects::ApplicationController ...@@ -63,7 +63,7 @@ class Projects::SnippetsController < Projects::ApplicationController
def raw def raw
send_data( send_data(
@snippet.content, @snippet.content,
type: "text/plain", type: 'text/plain; charset=utf-8',
disposition: 'inline', disposition: 'inline',
filename: @snippet.file_name filename: @snippet.file_name
) )
......
...@@ -86,7 +86,7 @@ class SnippetsController < ApplicationController ...@@ -86,7 +86,7 @@ class SnippetsController < ApplicationController
def raw def raw
send_data( send_data(
@snippet.content, @snippet.content,
type: "text/plain", type: 'text/plain; charset=utf-8',
disposition: 'inline', disposition: 'inline',
filename: @snippet.file_name filename: @snippet.file_name
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment