Looks like I should store the return value of isGzippedResponse to avoid scanning the NSData twice.