compression!

This commit is contained in:
Steve Coast 2006-12-01 11:07:31 +00:00
parent 25936fad05
commit c38e4bf4a0
4 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,8 @@
class ApiController < ApplicationController
before_filter :authorize
after_filter :compress_output
def map
response.headers["Content-Type"] = 'application/xml'
# Figure out the bbox

View file

@ -2,6 +2,7 @@ class NodeController < ApplicationController
require 'xml/libxml'
before_filter :authorize
after_filter :compress_output
def create
response.headers["Content-Type"] = 'application/xml'

View file

@ -2,6 +2,7 @@ class SegmentController < ApplicationController
require 'xml/libxml'
before_filter :authorize
after_filter :compress_output
def create
response.headers["Content-Type"] = 'application/xml'

View file

@ -2,6 +2,7 @@ class WayController < ApplicationController
require 'xml/libxml'
before_filter :authorize
after_filter :compress_output
def create
if request.put?