change mime type and reformat search controller
[rails.git] / app / controllers / api_controller.rb
index 976c8bd03c683d06b9187db02942367aab6f33f8..3cebdcf5319bc6ff6c002ce4b769809f1934a703 100644 (file)
@@ -7,7 +7,7 @@ class ApiController < ApplicationController
   MAX_REQUEST_AREA = 0.25
 
   def map
-    response.headers["Content-Type"] = 'application/xml'
+    response.headers["Content-Type"] = 'text/xml'
     # Figure out the bbox
     bbox = params['bbox']
     unless bbox and bbox.count(',') == 3