From: arno Date: Sun, 20 Mar 2011 15:36:04 +0000 (+0100) Subject: set a better mime type when downloading gpx X-Git-Tag: v0.3~7 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=ccec698be8d221c48a6590af099d4390ee0a31e6 set a better mime type when downloading gpx --- diff --git a/application/controllers/GeomController.php b/application/controllers/GeomController.php index 1a860b6..497b2a8 100644 --- a/application/controllers/GeomController.php +++ b/application/controllers/GeomController.php @@ -82,7 +82,7 @@ class GeomController extends Zend_Controller_Action $data .= ''; $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) {