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
mmastrac
changed the title
can't got content-length header for formdata Request build
FormData uses chunked encoding rather than Content-Length, even for known-sized form uploads
Dec 18, 2023
From what I understand part of the reason is that Content-Length is untrusted. Requests can include a content length that is inaccurate.
For my purposes, I'd like to set a maximum upload size for example. Where if that size is exceeded the request is terminated. Unfortunately I need to check the length as I go because I cannot trust content length. This is a problem because then I have my request body in a Blob and request.formData() isn't available anymore.
Some way I could parse the request data from a blob would be super. Or, a way to ask deno to limit the request size.
Version: Deno 1.39.0
for formData request build can't got content-length header
The text was updated successfully, but these errors were encountered: