You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading openapi-fetch from 0.8.2 to 0.9.1 we see 415 Unsupported Media Type responses for multipart/form-data requests.
We have investigated how the request has changed as a result of the update. We noticed that the request header Content-Type: multipart/form-data; boundary=... is no longer sent with the request.
A copy from of the request (as cUrl) from the developer console:
schuch
changed the title
Request Header 'Content-Type' no longer set for body serialized as FormData
Request Header 'Content-Type' no longer set for requests with body serialized as FormData
Feb 16, 2024
I have the same issue. Inspecting the Request object in openapi-fetch shows the content-type header that used to be set in 0.8.2 multipart/form-data; boundary=----formdata-undici-0.6228903411172271 is no longer set in 0.9.x
shirish87
added a commit
to shirish87/openapi-typescript
that referenced
this issue
Feb 17, 2024
Description
After upgrading
openapi-fetch
from 0.8.2 to 0.9.1 we see415 Unsupported Media Type
responses for multipart/form-data requests.We have investigated how the request has changed as a result of the update. We noticed that the request header
Content-Type: multipart/form-data; boundary=...
is no longer sent with the request.A copy from of the request (as cUrl) from the developer console:
(omitted a few headers for better clarity)
Reproduction
We use the following code to perform the request:
Expected result
openapi-fetch create a proper multipart form-data request, e.g.:
(copied as cUrl from a successful request from the developer console, omitted a few headers for better clarity)
Checklist
The text was updated successfully, but these errors were encountered: