[Fusionforge-commits] r12912 - trunk/src/plugins/oslc/include/oslc-zend/application/controllers

Sabri LABBENE labbenes at fusionforge.org
Fri Mar 25 14:57:00 CET 2011


Author: labbenes
Date: 2011-03-25 14:57:00 +0100 (Fri, 25 Mar 2011)
New Revision: 12912

Modified:
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCompactController.php
Log:
Force content type to application/x-oslc-compact+xml in response.

Modified: trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCompactController.php
===================================================================
--- trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCompactController.php	2011-03-25 13:56:22 UTC (rev 12911)
+++ trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCompactController.php	2011-03-25 13:57:00 UTC (rev 12912)
@@ -104,7 +104,7 @@
 		$user_obj = user_get_object_by_name($params['user']);
 		$this->view->user = $user_obj;
 		
-		$this->getResponse()->setHeader('Content-Type', 'xml');
+		$this->getResponse()->setHeader('Content-Type', 'application/x-oslc-compact+xml');
 	}
 	
 	/**
@@ -121,7 +121,7 @@
 
 		$user_obj = user_get_object_by_name($params['user']);
 		$this->view->user = $user_obj;
-		//print($this->actionMimeType); die();
+
 		$this->getResponse()->setHeader('Content-Type', $this->actionMimeType);
 	}
 }




More information about the Fusionforge-commits mailing list