title: How to read response headers in angularjs?
body: <p>My server returns this kind of header: <code>Content-Range:0-10/0</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/YgZL5.png" alt="enter image description here"></p>
  
  <p>I tried to read this header in angular with no luck: </p>
  
  <pre><code>var promise = $http.get(url, {
      params: query
  }).then(function(response) {
    console.log(response.headers());
    return response.data;
  });
  </code></pre>
  
  <p>which just prints  </p>
  
  <pre><code>Object {content-type: "application/json; charset=utf-8"}
  </code></pre>
  
  <p>Any ideas how to access the content range header?</p>