diff --git a/test/CodeoriginTest.php b/test/CodeoriginTest.php index 23c6a12b..0e0c9e30 100644 --- a/test/CodeoriginTest.php +++ b/test/CodeoriginTest.php @@ -4,13 +4,14 @@ * * $ php test/CodeoriginTest.php * - * $ php test/CodeoriginTest.php "localhost:4000" + * $ php test/CodeoriginTest.php "http://localhost:4000" * - * $ php test/CodeoriginTest.php "code.jquery.com" + * $ php test/CodeoriginTest.php "http://code.jquery.com" + * $ php test/CodeoriginTest.php "https://code.jquery.com" */ require_once __DIR__ . '/Unit.php'; -$server = @$argv[1] ?: 'localhost:4000'; +$server = @$argv[1] ?: 'http://localhost:4000'; Unit::start(); diff --git a/test/Unit.php b/test/Unit.php index 3ede77d5..ba4285f3 100644 --- a/test/Unit.php +++ b/test/Unit.php @@ -76,7 +76,7 @@ public static function test( $name, $actual, $expected ) { public static function testHttp( $server, $path, array $reqHeaders, array $expectHeaders, $expectBody = null ) { try { - $resp = jq_req( "http://{$server}{$path}", $reqHeaders ); + $resp = jq_req( "{$server}{$path}", $reqHeaders ); foreach ( $expectHeaders as $key => $val ) { // Tolerate E-Tag weakning (which Highwinds CDN does) if ( $key == 'etag' ) {