lib/rack/mock.rb in rack-1.6.7 vs lib/rack/mock.rb in rack-1.6.8

- old
+ new

@@ -141,10 +141,10 @@ } env end - if "<3".respond_to? :encoding + if "<3".respond_to? :b def self.env_with_encoding(env, opts, uri) env[REQUEST_METHOD] = (opts[:method] ? opts[:method].to_s.upcase : "GET").b env["SERVER_NAME"] = (uri.host || "example.org").b env["SERVER_PORT"] = (uri.port ? uri.port.to_s : "80").b env[QUERY_STRING] = (uri.query.to_s).b