title: Custon headers not working on php 5.6 - apache 2.4, debian 8 jessie
body: <p>I just upgraded my debian 7 wheezy to debian 8 jessie. Apache and php were updated accordingly from <code>apache 2.2.22 to 2.4.10</code> and from <code>php 5.4.x to 5.6.9</code>. Now when sending custom headers with ajax request, they are not present in php. Here is a simple example with <code>index.php</code> and <code>ajax.php</code> files with the following contents respectively.</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(document).ready(function() {
                  $(document).bind("ajaxSend", function(elm, xhr, s){
                      xhr.setRequestHeader('MY_HEADER', 'my_header_value');
                  });
  
                  $.ajax({
                      type : "POST",
                      url : 'ajax.php',
                      data : {},
                      error : function() {
                          alert('error');
                      },
                      success : function(data) {
                          alert(data);
                      }
                  });
  
              });
          &lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;?php //phpinfo();?&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;?php 
      if (isset($_SERVER['HTTP_MY_HEADER'])) {
          echo $_SERVER['HTTP_MY_HEADER'];die;
      }
  
      print_r($_SERVER);
  ?&gt;
  </code></pre>
  
  <p>In <code>$_SERVER</code> the <code>HTTP_MY_HEADER</code> is not present.</p>
  
  <p>I have tried this example in my another server with debian 7 with apache 2.2 and php 5.4 and it works fine - the header is set. But for the upgraded version it does not. </p>
  
  <p>Mod headers is enabled and apache is restarted.</p>
  
  <p>Thanks</p>