title: angular.js - headers error
body: <p>This code throws SyntaxError: Unexpected token W. Why? And how to fix it?</p>
  
  <pre><code>      http({
            method: 'POST',          
            url: defaultUrl,
            data: $.param(newPlayer),.
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        })
  </code></pre>
  
  <p>Thanks for answers.</p>