The answer associated with the comments is that it was called by gzip. Oddly enough, the meaning for expectedContentLengthseems undesirable and cannot be trusted. If the gzip result is encoded, then NSURLConnectionit cannot correctly determine the size of the unencoded result.
source
share