diff options
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | COPYING | 2 | ||||
-rw-r--r-- | lib/rack/mock.rb | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 83b5de46..5008c954 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,6 @@ rvm: - 2.3.0 - ruby-head - rbx-2 - - jruby - jruby-9.0.4.0 - jruby-head @@ -20,5 +19,4 @@ notifications: matrix: allow_failures: - - rvm: jruby - rvm: rbx-2 @@ -1,4 +1,4 @@ -Copyright (c) 2007-2015 Christian Neukirchen <purl.org/net/chneukirchen> +Copyright (c) 2007-2016 Christian Neukirchen <purl.org/net/chneukirchen> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to 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]) |