lib/cas/client/rack.rb in cas-client-0.1.2.pre.p14 vs lib/cas/client/rack.rb in cas-client-0.1.2.pre.p15

- old
+ new

@@ -8,10 +8,10 @@ def call(env) puts "CAS Client Called from Rack!" status, headers, rack_body = @app.call(env) puts "Middleware called. Status: #{status}, Headers: #{headers}" - if rack_body.class == RackBody && rack_body.body.class == String + if rack_body.respond_to?("body") && rack_body.body.class == String response = rack_body.body response += "CAS Client Called!!!" headers["Content-Length"] = response.length.to_s return [status, headers, [response]] else