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