private static bool IsGzippedReponse(string contentEncodingHeader) { if (!string.IsNullOrEmpty(contentEncodingHeader)) { if (contentEncodingHeader.ToLower().Contains("gzip")) { return true; } } return false; }