Author: chabotc
Date: Sun Jul 13 06:21:48 2008
New Revision: 676318

URL: http://svn.apache.org/viewvc?rev=676318&view=rev
Log:
Re-enable the proper content type headers

Modified:
    incubator/shindig/trunk/php/src/socialrest/http/RestServlet.php

Modified: incubator/shindig/trunk/php/src/socialrest/http/RestServlet.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialrest/http/RestServlet.php?rev=676318&r1=676317&r2=676318&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialrest/http/RestServlet.php (original)
+++ incubator/shindig/trunk/php/src/socialrest/http/RestServlet.php Sun Jul 13 
06:21:48 2008
@@ -70,15 +70,14 @@
                // NOTE : if no token is provided an anonymous one is created 
(owner = viewer = appId = modId = 0)
                // keep this in mind when creating your data services.. 
                $token = $this->getSecurityToken();
-               $req = null;
                $outputFormat = $this->getOutputFormat();
                switch ($outputFormat) {
                        case 'json':
-                               //$this->setContentType('application/json');
+                               $this->setContentType('application/json');
                                $outputConverter = new OutputJsonConverter();
                                break;
                        case 'atom':
-                               //$this->setContentType('application/atom+xml');
+                               $this->setContentType('application/atom+xml');
                                $outputConverter = new OutputAtomConverter();
                                break;
                        default:


Reply via email to