]> dev.renevier.net Git - syj.git/commitdiff
set a better mime type when downloading gpx
authorarno <arno@renevier.net>
Sun, 20 Mar 2011 15:36:04 +0000 (16:36 +0100)
committerarno <arno@renevier.net>
Sun, 20 Mar 2011 15:36:04 +0000 (16:36 +0100)
application/controllers/GeomController.php

index 1a860b66c968e4eaeb9805037a1698ea1237f63a..497b2a8ca4692561644c743d68e8f0454e619c04 100644 (file)
@@ -82,7 +82,7 @@ class GeomController extends Zend_Controller_Action
         $data .= '</gpx>';
 
         $api = $this->_helper->SyjApi;
-        $api->setCheckIfNoneMatch(true)->setContentType('application/octet-stream')->setBody($data);
+        $api->setCheckIfNoneMatch(true)->setContentType('application/gpx+xml')->setBody($data);
     }
 
     protected function json(Syj_Model_Path $path) {