FIX #4cc7da8 opening braces

This commit is contained in:
Thierry François 2014-09-06 14:52:38 +03:00
parent aaaca90a93
commit c72310ff61

View File

@ -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{