From 10455f38d8d55665e5c3b007673cff73ce040d86 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Fri, 9 Feb 2024 13:19:08 -0800 Subject: [PATCH] handle --form with set() - was missing --- CloudFlare/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CloudFlare/utils.py b/CloudFlare/utils.py index b95b787..1db0125 100644 --- a/CloudFlare/utils.py +++ b/CloudFlare/utils.py @@ -86,7 +86,7 @@ def build_curl(method, url, headers, params, data_str, data_json, files): msg.append(' --form %s="%s" \\' % (k, v[0])) else: msg.append(' --form %s="%s" \\' % (k,v)) - elif isinstance(files, (list, tuple)): + elif isinstance(files, (set, list, tuple)): for f in files: if isinstance(f, (list, tuple)): if f[1][0] is None: