Skip to content

Commit

Permalink
apereo#34 Method visibility changed to allow easier customization of …
Browse files Browse the repository at this point in the history
…redirect handling.

CAS_ProxiedService_Http_Post can now be extended and with a single method
change redirection can be halted.
  • Loading branch information
adamfranco committed Apr 12, 2012
1 parent 5cab119 commit 4200601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/CAS/ProxiedService/Http/Abstract.php
Expand Up @@ -231,7 +231,7 @@ protected function makeRequest ($url)
$this->_cookieJar->storeCookies($url, $request->getResponseHeaders());

// Follow any redirects
if ($redirectUrl = $this->_getRedirectUrl($request->getResponseHeaders())) {
if ($redirectUrl = $this->getRedirectUrl($request->getResponseHeaders())) {
phpCAS :: trace('Found redirect:'.$redirectUrl);
$this->makeRequest($redirectUrl);
} else {
Expand All @@ -258,7 +258,7 @@ abstract protected function populateRequest (CAS_Request_RequestInterface $reque
*
* @return string or null
*/
private function _getRedirectUrl (array $responseHeaders)
protected function getRedirectUrl (array $responseHeaders)
{
// Check for the redirect after authentication
foreach ($responseHeaders as $header) {
Expand Down

0 comments on commit 4200601

Please sign in to comment.