title: Request Header missing authorisation - Codeigniter rest
body: <p>I am creating a restful services with Codeigniter rest server and firebase php-jwt.
  Created an api to return list of operator. To access this api client has to send token in headers. Sample request is -</p>
  
  <blockquote>
    <p>GET /index.php/operators/prepaid HTTP/1.1<br>
    Host: testing.mydomain.in<br>
    Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjExNTIxNCIsImlhdCI6MTUxNzk4MjU1NywiZXhwIjoxNTE4MDAwNTU3fQ.PZYh3OlSsKGo_ihPPSm7RrU5BbTNaeTN1fKlNcOZ2r4<br>
    Cache-Control: no-cache<br>
    Postman-Token: 933f3b1d-7934-d30a-11bf-f80f3912f433</p>
  </blockquote>
  
  <p>controller code  </p>
  
  <pre><code>use \Firebase\JWT\JWT;
  class Operators extends REST_Controller 
  {
      private $_payload;
  
      public function __construct($config = 'rest')
      {
          parent::__construct($config);
          $token = $this-&gt;input-&gt;get_request_header('Authorization');
          if(!$token) {
              $output = array("Error" =&gt; "Access Denied");
              $this-&gt;response($output, REST_Controller::HTTP_UNAUTHORIZED);
          }
          try {
              $this-&gt;_payload = JWT::decode($token, $this-&gt;config-&gt;item('jwt_secret_key'),array('HS256'));
          } catch (Exception $ex) {
              $output = array("Error" =&gt; $ex-&gt;getMessage());
              $this-&gt;response($output, REST_Controller::HTTP_UNAUTHORIZED);
          }
          $this-&gt;load-&gt;model('Operators_Data');
      }       
  
      public function prepaid_get()
      { 
          $operators = $this-&gt;Operators_Data-&gt;getOperatorsByService(1);
          $this-&gt;response($operators);
      }
  }
  </code></pre>
  
  <p>I am getting the following result</p>
  
  <pre><code>{
       "Error": "Access Denied"
  }
  </code></pre>
  
  <p>Returned from controller constructor if token is not present.But i am sending the token in header authorisation.</p>
  
  <p>This is working on my local host (it returns list of operator). but when i 
  trying from testing server it always returning "Access Denied".</p>
  
  <p><strong>UPDATE :</strong> Pretty sure that server is ignoring "Authorization" header.</p>
  
  <p>Also tried with </p>
  
  <pre><code>SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  </code></pre>
  
  <p>Settings in .htaccess</p>
  
  <p>Any help is very much appreciated. </p>