Преглед изворни кода

Use decompression utility for Content-Encoding: gzip

Ryan Olson пре 11 година
родитељ
комит
197dcccb4e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Classes/Network/FLEXNetworkTransactionDetailTableViewController.m

+ 1 - 1
Classes/Network/FLEXNetworkTransactionDetailTableViewController.m

@@ -415,7 +415,7 @@ typedef UIViewController *(^FLEXNetworkDetailRowSelectionFuture)(void);
     NSData *bodyData = transaction.request.HTTPBody;
     if ([bodyData length] > 0) {
         NSString *contentEncoding = [transaction.request valueForHTTPHeaderField:@"Content-Encoding"];
-        if ([contentEncoding rangeOfString:@"deflate" options:NSCaseInsensitiveSearch].length > 0) {
+        if ([contentEncoding rangeOfString:@"deflate" options:NSCaseInsensitiveSearch].length > 0 || [contentEncoding rangeOfString:@"gzip" options:NSCaseInsensitiveSearch].length > 0) {
             bodyData = [FLEXUtility inflatedDataFromCompressedData:bodyData];
         }
     }