X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/226c41be692452129227f30d67f2d847e510015c..b89486eab0445fe7888969ce6ac8441ee998171c:/app/controllers/amf_controller.rb diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index e776c8d8b..96d3602a9 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -66,7 +66,10 @@ class AmfController < ApplicationController end bodies=AMF.getint(req) # Read number of bodies - render :content_type => "application/x-amf", :text => proc { |response, output| + + self.status = :ok + self.content_type = Mime::AMF + self.response_body = proc { |response, output| a,b=bodies.divmod(256) output.write 0.chr+0.chr+0.chr+0.chr+a.chr+b.chr bodies.times do # Read each body @@ -114,7 +117,10 @@ class AmfController < ApplicationController end bodies=AMF.getint(req) # Read number of bodies - render :content_type => "application/x-amf", :text => proc { |response, output| + + self.status = :ok + self.content_type = Mime::AMF + self.response_body = proc { |response, output| a,b=bodies.divmod(256) output.write 0.chr+0.chr+0.chr+0.chr+a.chr+b.chr bodies.times do # Read each body