             print(string)
         }
     }
-    
+
     fileprivate func clear() {
         defer {
             urlTask = nil

            return data as Data
        }
    }
    
    private func find(deserialize contentType: String) -> BodyDeserializer? {
        for (pattern, deserializer) in Sniffer.bodyDeserializers {
            do {
                let regex = try NSRegularExpression(pattern: pattern.replacingOccurrences(of: "*", with: "[a-z]+"))
                let results = regex.matches(in: contentType, range: NSRange(location: 0, length: contentType.count))
                
                if !results.isEmpty {
                    return deserializer
                }

            self?.session.invalidateAndCancel()
        }
    }

    // MARK: - Private

    private func log(_ string: String) {
        if let _ = Sniffer.onLogger {
            Sniffer.onLogger?(string)
