mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
Merge pull request #7518 from jvanbaarsen/snippet-charset-fix
Set charset encoding to UTF-8 for snippets
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user