Skip to content

Commit

Permalink
Fix Rack::Lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
benburkert committed Oct 23, 2010
1 parent 279a969 commit 2adde8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/client/adapter/base.rb
Expand Up @@ -39,7 +39,7 @@ def build_env(request_method, url, headers = {}, body = nil)

env.update 'PATH_INFO' => path_info
env.update 'REQUEST_URI' => uri.to_s
env.update 'SERVER_NAME' => uri.host
env.update 'SERVER_NAME' => uri.host.to_s
env.update 'SERVER_PORT' => uri.port.to_s
env.update 'SCRIPT_NAME' => ''
env.update 'QUERY_STRING' => uri.query.to_s
Expand All @@ -51,7 +51,7 @@ def build_env(request_method, url, headers = {}, body = nil)

env.update 'rack.input' => input
env.update 'rack.errors' => StringIO.new
env.update 'rack.url_scheme' => uri.scheme
env.update 'rack.url_scheme' => uri.scheme || 'http'
env.update 'rack.version' => Rack::VERSION
env.update 'rack.multithread' => true
env.update 'rack.multiprocess' => true
Expand Down

0 comments on commit 2adde8e

Please sign in to comment.