title: Restkit loading gzipped json
body: <p>I'm using RestKit to load a gzipped JSON with RKRequest:</p>
  
  <pre><code>RKRequest* request = [[RKClient sharedClient] requestWithResourcePath:urlString delegate:self];
  [request send];
  </code></pre>
  
  <p>but I receive a status 406. When using AsiHttpRequest everything works, the response gets unzipped and I can work with the JSON. When I turn off gzip on server the RKRequest works.</p>
  
  <p>What is wrong? I found no way to tell RKRequest, that the response will be zipped. Any ideas? </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>It is strange. Sometimes I get</p>
  
  <pre><code>Headers: {
      Connection = "Keep-Alive";
      "Content-Length" = 14;
      "Content-Type" = "text/html; charset=UTF-8";
      Date = "Fri, 16 Mar 2012 13:44:16 GMT";
      "Keep-Alive" = "timeout=2, max=500";
      Server = Apache;
      "X-Powered-By" = "Servlet/2.5 JSP/2.1";
  }
  </code></pre>
  
  <p>and sometimes I get application/gzip which is handled correct. My problem is why I get "Content-Type" = "text/html; charset=UTF-8"; sometimes.
  And the same request opened in Safari results in a gzip-response always.</p>