Undici didn't update Content-Type
header for multipart/form-data
requests after following redirects which leads to mismatch in request body and header
#4065
Labels
bug
Something isn't working
Bug Description
There is a problem when sending a
multipart/form-data
request that follows redirects. After the redirect,undici
overrides the request body but does not update theContent-Type
header, which causes an error when parsing the body. The updated content type just ignored here.Reproducible By
Expected Behavior
The
Content-Type
header should be updated along with the body after a redirect.Logs & Screenshots
Environment
Additional context
The text was updated successfully, but these errors were encountered: