DataPipelining Requests do not create the correct shindig url, if shindig is
not running on port 80
---------------------------------------------------------------------------------------------------
Key: SHINDIG-1388
URL: https://issues.apache.org/jira/browse/SHINDIG-1388
Project: Shindig
Issue Type: Bug
Components: PHP
Reporter: Bastian Hofmann
Index: php/src/gadgets/templates/DataPipelining.php
===================================================================
139,140c139,140
< * are made to $_SERVER['SERVER_NAME'] (the virtual host name of this
server) / (optional) web_prefix / social / rpc, and
< * the httpRequest's are made to $_SERVER['SERVER_NAME'] (the virtual host
name of this server) / (optional) web_prefix / gadgets / makeRequest
---
> * are made to $_SERVER['HTTP_HOST'] (the virtual host name of this server)
> / (optional) web_prefix / social / rpc, and
> * the httpRequest's are made to $_SERVER['HTTP_HOST'] (the virtual host
> name of this server) / (optional) web_prefix / gadgets / makeRequest
183c183
< $request = new RemoteContentRequest('http://'.$_SERVER['SERVER_NAME'] .
Config::get('web_prefix') . '/social/rpc?st=' . urlencode($securityToken) .
'&format=json', "Content-Type: application/json\n", json_encode($jsonRequests));
---
> $request = new RemoteContentRequest('http://'.$_SERVER['HTTP_HOST'] .
> Config::get('web_prefix') . '/rpc?st=' . urlencode($securityToken) .
> '&format=json', "Content-Type: application/json\n",
> json_encode($jsonRequests));
194c194
< $req = new RemoteContentRequest($_SERVER['SERVER_NAME'] .
Config::get('web_prefix') . '/gadgets/makeRequest?url=' .
urlencode($request['url']) . '&st=' . urlencode($securityToken) . (!
empty($request['queryStr']) ? '&' . $request['queryStr'] : ''));
---
> $req = new RemoteContentRequest($_SERVER['HTTP_HOST'] .
> Config::get('web_prefix') . '/gadgets/makeRequest?url=' .
> urlencode($request['url']) . '&st=' . urlencode($securityToken) . (!
> empty($request['queryStr']) ? '&' . $request['queryStr'] : ''));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.