lib/cas/client/rack.rb in cas-client-0.1.2.pre.p6 vs lib/cas/client/rack.rb in cas-client-0.1.2.pre.p8
- old
+ new
@@ -5,16 +5,16 @@
@app = app
end
def call(env)
puts "CAS Client Called from Rack!"
- status, headers, body = @app.call(env)
+ status, headers, rack_body = @app.call(env)
puts "Middleware called. Status: #{status}, Headers: #{headers}"
- body += "CAS Client Called!!!"
+ rack_body.body += "CAS Client Called!!!"
headers["Content-Length"] = body.length.to_s
- [status, headers, body]
+ [status, headers, rack_body]
end
end
end
end