title: node.js - request - How to "emitter.setMaxListeners()"?
body: <p>When I do a GET on a certain URI using the node.js 'request' module;</p>
  
  <pre><code>var options = {uri:"aURI", headers:headerData};
  request.get(options, function (error, response, body) {
  }
  </code></pre>
  
  <p><strong>The error message is:</strong></p>
  
  <pre><code>[Error: Exceeded maxRedirects. Probably stuck in a redirect loop.]
  </code></pre>
  
  <p><strong>and there is also the following message:</strong></p>
  
  <pre><code>"(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit."
  </code></pre>
  
  <p>How do I <code>setMaxListeners</code>?</p>