         }
     }
 }
+
+extension Dictionary where Key == String {
+    subscript(caseInsensitive key: Key) -> Value? {
+        get {
+            if let k = keys.first(where: { $0.caseInsensitiveCompare(key) == .orderedSame }) {
+                return self[k]
+            }
+            return nil
+        }
+    }
+}

        
        var postNotification:Bool = false
        
        if let appLatestVersion = responseHeaders[AppLatestVersionKey] as? String {
            postNotification = latestVersion != appLatestVersion
            latestVersion = appLatestVersion
        }

            }
        }
        
        if let versionLastSupportedDate = responseHeaders[caseInsensitive: AppVersionLastSupportedDateKey] as? String {
            lastSupportedDateString = versionLastSupportedDate
        }
        
