You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ag...@apache.org on 2010/02/04 09:53:10 UTC

svn commit: r906404 - /incubator/shindig/trunk/php/src/gadgets/MakeRequestOptions.php

Author: agektmr
Date: Thu Feb  4 08:53:10 2010
New Revision: 906404

URL: http://svn.apache.org/viewvc?rev=906404&view=rev
Log:
fix for osapi.http.get request getting "MakeRequestOptions::setRequestHeaders() must be an array" error

Modified:
    incubator/shindig/trunk/php/src/gadgets/MakeRequestOptions.php

Modified: incubator/shindig/trunk/php/src/gadgets/MakeRequestOptions.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/MakeRequestOptions.php?rev=906404&r1=906403&r2=906404&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/MakeRequestOptions.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/MakeRequestOptions.php Thu Feb  4 08:53:10 2010
@@ -231,7 +231,7 @@
     $options = new MakeRequestOptions($href);
     $options->setHttpMethod($request->getMethod())
             ->setRequestBody($request->getParameter('body'))
-            ->setRequestHeaders($request->getParameter('headers'))
+            ->setRequestHeaders($request->getParameter('headers', array()))
             ->setResponseFormat($request->getParameter('format'))
             ->setAuthz($request->getParameter('authz'))
             ->setSignViewer($request->getParameter('sign_viewer'))