Pārlūkot izejas kodu

fix testing on IIS - it has HTTPS=off when it's http://

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19002 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas 16 gadi atpakaļ
vecāks
revīzija
4006fd54bb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      tests/Zend/Http/Client/_files/testRedirections.php

+ 1 - 1
tests/Zend/Http/Client/_files/testRedirections.php

@@ -22,7 +22,7 @@
 
 if (! isset($_GET['redirection'])) $_GET['redirection'] = 0;
 $_GET['redirection']++;
-$https = isset($_SERVER['HTTPS']);
+$https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
 
 if ($_GET['redirection'] < 4) {
     $target = 'http' . ($https ? 's://' : '://')  . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];