diff --git a/lib/evil/client/resolver/request.rb b/lib/evil/client/resolver/request.rb index 0c1dc12..b8b24c3 100644 --- a/lib/evil/client/resolver/request.rb +++ b/lib/evil/client/resolver/request.rb @@ -35,7 +35,7 @@ def environment "SERVER_NAME" => uri.host, "SERVER_PORT" => uri.port, "HTTP_Variables" => headers, - "rack.version" => Rack::VERSION, + "rack.version" => Rack.release, "rack.url_scheme" => uri.scheme, "rack.input" => Formatter.call(body, format, boundary: boundary), "rack.multithread" => false, diff --git a/spec/unit/connection_spec.rb b/spec/unit/connection_spec.rb index 4682167..64e6ca0 100644 --- a/spec/unit/connection_spec.rb +++ b/spec/unit/connection_spec.rb @@ -15,7 +15,7 @@ "Authorization" => "Bearer eoiqopr==", "Content-Type" => "application/json" }, - "rack.version" => Rack::VERSION, + "rack.version" => Rack.release, "rack.input" => "name=Andrew&age=46", "rack.url_scheme" => "https", "rack.multithread" => false, diff --git a/spec/unit/resolver/request_spec.rb b/spec/unit/resolver/request_spec.rb index 7e8c2f3..0b7a329 100644 --- a/spec/unit/resolver/request_spec.rb +++ b/spec/unit/resolver/request_spec.rb @@ -50,7 +50,7 @@ "Authorization" => "Bearer eoiqopr==", "Content-Type" => "application/json" }, - "rack.version" => Rack::VERSION, + "rack.version" => Rack.release, "rack.input" => '{"version":"v77"}', "rack.url_scheme" => "https", "rack.multithread" => false,