mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-06 07:46:27 +00:00
Use HTTP_CONTENT_TYPE in place of CONTENT_TYPE for test on PHP's built-in web server
This commit is contained in:
@@ -220,7 +220,7 @@ class CurlTest extends PHPUnit_Framework_TestCase {
|
||||
$test->curl->setHeader('X-Requested-With', 'XMLHttpRequest');
|
||||
$test->curl->setHeader('Accept', 'application/json');
|
||||
$this->assertTrue($test->server('server', 'GET', array(
|
||||
'key' => 'CONTENT_TYPE',
|
||||
'key' => 'HTTP_CONTENT_TYPE', // OR "CONTENT_TYPE".
|
||||
)) === 'application/json');
|
||||
$this->assertTrue($test->server('server', 'GET', array(
|
||||
'key' => 'HTTP_X_REQUESTED_WITH',
|
||||
|
||||
Reference in New Issue
Block a user