Open haseebeqx opened 5 months ago
I was getting this error in my logs when I was trying to load /rack-mini-profiler/requests.
/rack-mini-profiler/requests
MiniProfiler storage failure: can't modify frozen String: "<!DOCTYPE html>\n\n \n Rack::MiniProfiler Requests\n \n \n \n\n"
MiniProfiler storage failure: can't modify frozen String: "<!DOCTYPE html>\n\n
This PR fixes the issue by using string + method. It will use the original string if it is not frozen and create a duplicated string if it is frozen.
+
body is usually an array, insert should work can you create a test case for this?
@SamSaffron Thanks. I will check that.
I was getting this error in my logs when I was trying to load
/rack-mini-profiler/requests
.This PR fixes the issue by using string
+
method. It will use the original string if it is not frozen and create a duplicated string if it is frozen.