MiniProfiler / rack-mini-profiler

Profiler for your development and production Ruby rack apps.
MIT License
3.7k stars 402 forks source link

Add charset=utf-8 to content-type text/plain #497

Closed akiomik closed 3 years ago

akiomik commented 3 years ago

memory_profiler reports may contain non-ASCII characters (e.g. Allocated String Report section), so if charset is not specified, the results in ?pp=profile-memory may be garbled.

Fixed this problem by specifying charset for Content-Type of text_result.

SamSaffron commented 3 years ago

Change looks good, thanks for the fix!