diff options
author | Jeremy Evans <code@jeremyevans.net> | 2016-01-28 12:48:14 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2016-01-28 12:48:14 -0800 |
commit | 483f747cc08fdb96270229e37e09d6467332023f (patch) | |
tree | 148db780d483ab9eff935f9c664ca62bfad60912 | |
parent | 7ba4ad9f7c9a4b507398cbdb0d8425cfe7ef7c69 (diff) | |
download | rack-483f747cc08fdb96270229e37e09d6467332023f.tar.gz |
Work with ruby 2.3's --enable-frozen-string-literal
These changes are the minimal ones necessary to allow Forme's specs to pass. There may well be other changes that are required.
-rw-r--r-- | lib/rack/mock.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/mock.rb b/lib/rack/mock.rb index a2fc2401..04d27a61 100644 --- a/lib/rack/mock.rb +++ b/lib/rack/mock.rb @@ -128,7 +128,7 @@ module Rack end end - empty_str = ''.force_encoding(Encoding::ASCII_8BIT) + empty_str = String.new.force_encoding(Encoding::ASCII_8BIT) opts[:input] ||= empty_str if String === opts[:input] rack_input = StringIO.new(opts[:input]) |