Permalink
Browse files

some servers use HTTP_HTTPS

  • Loading branch information...
1 parent ec2c5c5 commit 580cddda6191c28de74859dcede3d892bdec96d9 @smalyshev committed Jun 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Zend/Oauth/Provider.php
View
@@ -260,7 +260,7 @@ protected function getRequestUrl()
if(empty($_SERVER['SERVER_PORT']) || empty($_SERVER['HTTP_HOST']) || empty($_SERVER['REQUEST_URI'])) {
return Zend_Uri_Http::fromString("http://localhost/");
}
- if($_SERVER['SERVER_PORT'] == 443 || (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')) {
+ if($_SERVER['SERVER_PORT'] == 443 || (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (!empty($_SERVER['HTTP_HTTPS']) && $_SERVER['HTTP_HTTPS'] == 'on')) {
$proto = 'https';
}
return Zend_Uri_Http::fromString("$proto://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");

0 comments on commit 580cddd

Please sign in to comment.