Sofie Van Landeghem
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
3 deletions
-
fastapi/dependencies/utils.py
|
|
@ -829,9 +829,8 @@ def request_params_to_args( |
|
|
|
|
|
|
|
|
for key in received_params.keys(): |
|
|
for key in received_params.keys(): |
|
|
if key not in processed_keys: |
|
|
if key not in processed_keys: |
|
|
getlist = getattr(received_params, "getlist", None) |
|
|
if isinstance(received_params, (ImmutableMultiDict, Headers)): |
|
|
if callable(getlist): |
|
|
value = received_params.getlist(key) |
|
|
value = getlist(key) |
|
|
|
|
|
if isinstance(value, list) and (len(value) == 1): |
|
|
if isinstance(value, list) and (len(value) == 1): |
|
|
params_to_process[key] = value[0] |
|
|
params_to_process[key] = value[0] |
|
|
else: |
|
|
else: |
|
|
|