[core] aiohttp multipart/form-data drops data when files included #32473
Labels
Azure.Core
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
If both
files
anddata
are passed in the request, only what's infiles
gets added to aiohttp.FormData in the code below.data
gets dropped and is not encoded into request.azure-sdk-for-python/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py
Lines 158 to 175 in 2d0123c
For example, if I'm doing multipart/form-data with files and
data={"response_format": "srt"}
, I would expect my request body to look like:Updating the code to something like the below seems to work.
The text was updated successfully, but these errors were encountered: