Skip to content

Commit

Permalink
restful_rpc will now render the object directly into JSON as opposed …
Browse files Browse the repository at this point in the history
…to embedding in an Array first. This may break some far side apps if they are still expecting an Array. - Lighthouse #109
  • Loading branch information
jsgoecke committed Aug 10, 2010
1 parent 125bb6d commit 8831024
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -55,7 +55,7 @@ def ip_allowed?(ip)
rpc_object = Adhearsion::Components.component_manager.extend_object_with(Object.new, :rpc)

# TODO: set the content-type and other HTTP headers
response_object = Array rpc_object.send(path, *json)
response_object = rpc_object.send(path, *json)
[200, {"Content-Type" => "application/json"}, response_object.to_json]

end
Expand Down

0 comments on commit 8831024

Please sign in to comment.