Do we need to explicitly set the request's Content-Type to multipart/form-data when 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!
Do we need to explicitly set the request's `Content-Type` to `multipart/form-data` when 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!
Do we need to explicitly set the request's Content-Type to multipart/form-data when sending a request with FormData?
No. The XHR spec specifies that if the Content-Type is not explicitly set, it's inferred from the body.
>Do we need to explicitly set the request's Content-Type to multipart/form-data when sending a request with FormData?
No. The [XHR spec](https://xhr.spec.whatwg.org/#the-send()-method) specifies that if the `Content-Type` is not explicitly set, it's inferred from the body.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.