title: cURL call in AngularJS using $http
body: <p>I am new to angular and I'm trying to pass an access token in my header, but I cant seem to get it right.</p>
  
  <p>I have a curl request that works fine and I'm trying to get it in working in angular:</p>
  
  <pre><code>curl http://localhost:3000/api/v1/users -IH "Authorization: Token api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  </code></pre>
  
  <p>Angular $http call that isn't working</p>
  
  <pre><code>$http.get('http://localhost:3000/api/v1/users', {headers: {'api_key': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'}}).then(function(response) {
                  service.currentUser = response.data.user;
                  console.log(service.currentUser);
  </code></pre>
  
  <p>Thanks!</p>