Skip to content

Commit 6cd7a6f

Browse files
committed
fix logic in http_client to split request body between json/data/files
1 parent fc411c4 commit 6cd7a6f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/gooey/core/http_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,8 @@ def gooey_process_request_params(
539539
new_files[k] = [open(item, "rb") for item in v]
540540
elif v and isinstance(v, str) and os.path.exists(v):
541541
new_files[k] = open(v, "rb")
542-
elif isinstance(v, str) or v is omit or not v:
543-
# a URL, None, or omitted value
544-
data[k] = new_files.pop(k)
545542
else:
546-
new_files[k] = v
543+
data[k] = new_files.pop(k)
547544

548545
if new_files:
549546
return GooeyRequestParams(

0 commit comments

Comments
 (0)