$_SERVER['CONTENT_TYPE'] is part of the CGI/1.1 spec. But for some reason the built-in PHP web server does things slightly different and provides the Content-Type header under $_SERVER['HTTP_CONTENT_TYPE'].

Services should support the built-in PHP web server. Attached patch fixes this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ygerasimov’s picture

Status: Needs review » Fixed

Committed. Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.