Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test/CodeoriginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion test/Unit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) {
Expand Down