Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the storage error when html is frozen #606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haseebeqx
Copy link

I was getting this error in my logs when I was trying to load /rack-mini-profiler/requests.

MiniProfiler storage failure: can't modify frozen String: "\n\n \n <title>Rack::MiniProfiler Requests</title>\n \n \n \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.

@SamSaffron
Copy link
Member

body is usually an array, insert should work can you create a test case for this?

@haseebeqx
Copy link
Author

@SamSaffron Thanks. I will check that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants