title: Can't override content-type PHP server headers
body: <p>currently the server returns the following headers like so:</p>
  
  <p>2014-11-13 00:20:04.079 myiOSApplication 46715:1003]:   </p>
  
  <pre><code>{ status code: 200, headers {
      Connection = close;
      "Content-Length" = 5;
      "Content-Type" = "text/html; charset=UTF-8";
      "Content-Typesss" = "application/json; charset=UTF-8"; //&lt;-- Notice this appears, but soon as I remove the extra s characters, then it wont override the line above. :( so the content always returns `text/html` instead of the desired `application/json`
      Date = "Thu, 13 Nov 2014 00:20:03 GMT";
      Server = "Apache/2.2.26 (Amazon)";
      Status = "200 OK";
      StatusCode = 200;
      "X-Powered-By" = "PHP/5.3.28";
  } }
  </code></pre>
  
  <p>I can set other headers with ease, but as SOON as I try to set a header with the key: <code>Content-Type</code> like so:</p>
  
  <pre><code>header('Content-Type : application/json; charset=UTF-8');
  </code></pre>
  
  <p>then my key gets overridden with the system one and ignores my header type. </p>
  
  <p>What can I do?</p>
  
  <p><strong>Update 1:</strong></p>
  
  <p>In response to @scuzzy's request for - </p>
  
  <p><em>What happens if you echo your header then exit(); the script? eg header('Content-Type : application/json; charset=UTF-8');exit('{"hello":"world"}');</em></p>
  
  <p>Here's the iOS response to that:</p>
  
  <pre><code>2014-11-13 00:59:25.801 myiOSApplication [46849:1f07] RESPONSE: &lt;NSHTTPURLResponse: 0x61800002c060&gt; { URL: http://www.riabp.com/KINGS/Secure/Rajam/Get/Employees } { status code: 200, headers {
      Connection = close;
      "Content-Length" = 18;
      "Content-Type" = "text/html; charset=UTF-8";
      Date = "Thu, 13 Nov 2014 00:59:25 GMT";
      Server = "Apache/2.2.26 (Amazon)";
      "X-Powered-By" = "PHP/5.3.28";
  } }
  2014-11-13 00:59:25.801 KingsEMS[46849:303] Error: Request failed: unacceptable content-type: text/html
  2014-11-13 00:59:25.801 KingsEMS[46849:303] JSON Error:     {"hello":"world"}
  </code></pre>