Changeset 1329 in tests for trunk/data/WPHTTP-testcase-redirection-script.php
- Timestamp:
- 07/29/2013 02:09:31 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/data/WPHTTP-testcase-redirection-script.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/WPHTTP-testcase-redirection-script.php
r1318 r1329 84 84 } 85 85 86 if ( isset( $_GET['multiple-location-headers'] ) ) { 87 if ( ! isset( $_GET['redirected'] ) ) { 88 header( "Location: $url?multiple-location-headers=1&redirected=one", false ); 89 header( "Location: $url?multiple-location-headers=1&redirected=two", false ); 90 exit; 91 } 92 if ( 'two' != $_GET['redirected'] ) 93 echo 'FAIL'; 94 else 95 echo 'PASS'; 96 exit; 97 } 98 86 99 $rt = isset($_GET['rt']) ? $_GET['rt'] : 5; 87 100 $r = isset($_GET['r']) ? $_GET['r'] : 0;
Note: See TracChangeset
for help on using the changeset viewer.