From a93060ef9d49c5e4007d00eb8bb5a783263bb220 Mon Sep 17 00:00:00 2001 From: Akiomi Kamakura Date: Mon, 31 May 2021 10:26:19 +0900 Subject: [PATCH] FIX: Add charset=utf-8 to content-type text/plain (#497) --- lib/mini_profiler/profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mini_profiler/profiler.rb b/lib/mini_profiler/profiler.rb index 7e4b9e4f..efd52484 100644 --- a/lib/mini_profiler/profiler.rb +++ b/lib/mini_profiler/profiler.rb @@ -630,7 +630,7 @@ def analyze_memory end def text_result(body) - headers = { 'Content-Type' => 'text/plain' } + headers = { 'Content-Type' => 'text/plain; charset=utf-8' } [200, headers, [body]] end