Use HTTP_CONTENT_TYPE in place of CONTENT_TYPE for test on PHP's built-in web server

This commit is contained in:
Zach Borboa
2014-03-03 22:12:53 -08:00
parent 1195d14e00
commit e68c6cad09
+1 -1
View File
@@ -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',