From 5e69b3bfe48e605f93aa53a49d3d6615671f5457 Mon Sep 17 00:00:00 2001 From: Etienne van Delden-de la Haije Date: Fri, 31 Jul 2020 17:51:35 +0200 Subject: [PATCH] Fix a 'can't modify frozen String' error on Rails 5.2 and ruby 2.7.1' --- lib/raven/configuration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/raven/configuration.rb b/lib/raven/configuration.rb index db7fc73c4..42b0a2900 100644 --- a/lib/raven/configuration.rb +++ b/lib/raven/configuration.rb @@ -252,7 +252,7 @@ def server=(value) self.path = uri_path.join('/') # For anyone who wants to read the base server string - @server = "#{scheme}://#{host}" + @server = "#{scheme}://#{host}".dup @server << ":#{port}" unless port == { 'http' => 80, 'https' => 443 }[scheme] @server << path end