title: Request failed: unacceptable content-type: text/html using AFNetworking 2.0
body: <p>I'm trying out the new version 2.0 of AFNetworking and I'm getting the error above. Any idea why this is happening? Here's my code:</p>
  
  <pre><code>    NSURL *URL = [NSURL URLWithString:kJSONlink];
      NSURLRequest *request = [NSURLRequest requestWithURL:URL];
      AFHTTPRequestOperation *op = [[AFHTTPRequestOperation alloc] initWithRequest:request];
      op.responseSerializer = [AFJSONResponseSerializer serializer];
      [op setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
          NSLog(@"JSON: %@", responseObject);
      } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
          NSLog(@"Error: %@", error);
      }];
      [[NSOperationQueue mainQueue] addOperation:op];
  </code></pre>
  
  <p>I'm using Xcode 5.0.</p>
  
  <p>Also, here's the error message:</p>
  
  <pre><code>Error: Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo=0xda2e670 {NSErrorFailingURLKey=kJSONlink, AFNetworkingOperationFailingURLResponseErrorKey=&lt;NSHTTPURLResponse: 0xda35180&gt; { URL: kJSONlink } { status code: 200, headers {
      Connection = "Keep-Alive";
      "Content-Encoding" = gzip;
      "Content-Length" = 2898;
      "Content-Type" = "text/html";
      Date = "Tue, 01 Oct 2013 10:59:45 GMT";
      "Keep-Alive" = "timeout=5, max=100";
      Server = Apache;
      Vary = "Accept-Encoding";
  } }, NSLocalizedDescription=Request failed: unacceptable content-type: text/html}
  </code></pre>
  
  <p>I just hid the JSON using kJSONlink. This should return a JSON.</p>