]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/GeomController.php
set a better mime type when downloading gpx
[syj.git] / 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) {