Ensure correct XHR encoding for multipart/form-data forms #174
Reference in New Issue
Block a user
Delete Branch "fix/multipart-form-data"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #168
Do we need to explicitly set the request's
Content-Typetomultipart/form-datawhen sending a request with FormData? I haven't had time to test this myself yet, sorry. Real life has been getting in the way of things lately!No. The XHR spec specifies that if the
Content-Typeis not explicitly set, it's inferred from the body.Thanks for that spec link. Your change looks good to me given that clarification.