Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure formData value is not undefined
One must be careful that all formData values are not undefined An undefined value in form-data append will cause a confusing error: `TypeError: Cannot read property 'name' of undefined` Simple fix here is casting to empty string To repro: ```js var formData = { woops: undefined }; var request = require('request'); request('https://github.com', { formData }, console.log) ``` Related PR to fix form-data form-data/form-data#417
- Loading branch information