Requests page fails due to trying to modify a frozen string.#630
Conversation
Frozen strings cannot have `#insert` called on them, this was causing an error on the requests page.
|
It looks iike the |
Excellent, that sounds good to me, been a bit busy, but I should be able to make the edit soon. |
|
|
||
| expect(last_response.body).to include('<title>Rack::MiniProfiler Requests</title>') | ||
| expect(last_response.body).to match('<body>\n </body>') | ||
| expect(last_response.body).to match('<body>\n <script async nonce="" type="text/javascript" id="mini-profiler"') |
There was a problem hiding this comment.
This is interesting. Without the .dup, it looks like we were not inserting the rmp script?
Frozen strings cannot have
#insertcalled on them, this was causing an error on the requests page. This PR fixes that issue.Fixes #611