FIX #4cc7da8 opening braces
This commit is contained in:
parent
aaaca90a93
commit
c72310ff61
|
@ -295,7 +295,7 @@ class GridFieldBulkUpload_Request extends RequestHandler
|
||||||
*/
|
*/
|
||||||
protected function contentTypeNegotiation(&$response)
|
protected function contentTypeNegotiation(&$response)
|
||||||
{
|
{
|
||||||
if (isset($_SERVER['HTTP_ACCEPT']) && ((strpos($_SERVER['HTTP_ACCEPT'], 'application/json') !== false) || $_SERVER['HTTP_ACCEPT'] === '*/*' )) {
|
if (isset($_SERVER['HTTP_ACCEPT']) && ((strpos($_SERVER['HTTP_ACCEPT'], 'application/json') !== false) || $_SERVER['HTTP_ACCEPT'] === '*/*' ))
|
||||||
{
|
{
|
||||||
$response->addHeader('Content-Type', 'application/json');
|
$response->addHeader('Content-Type', 'application/json');
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue