]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/swf_controller.rb
Use SQL schemas, as ruby can't cope with the things we do...
[rails.git] / app / controllers / swf_controller.rb
index a93abc8ddd31987edb7d0a088a10a0424ad43a6b..a58e899e01741d0daeec900a210de98587a20a0a 100644 (file)
@@ -139,8 +139,7 @@ class SwfController < ApplicationController
                m=packRect(bounds_left,bounds_right,bounds_bottom,bounds_top) + 0.chr + 12.chr + packUI16(1) + m
                m='FWS' + 6.chr + packUI32(m.length+8) + m
        
-               response.headers["Content-Type"]="application/x-shockwave-flash"
-               render :text=>m
+               render :text => m, :content_type => "application/x-shockwave-flash"
        end
 
        private