New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
req.field('key', 'value') is broken #1065
Comments
|
That looks like a bug in |
I'm sorry, Just found that error happens when the
'use strict';
const request = require('superagent');
const co = require('co');
const main = co.wrap(function*() {
const res = yield request
.post('http://localhost')
.field('x');
});
if (module === process.mainModule) {
main().catch(e => console.error(e.stack || e));
} So should we add a |
what does an empty field means in a |
Throwing may be easier, but making undefined remove fields from the form could be more useful. |
Since form-data is going to fix this in v2, and current this will throw a unknown error |
I guess it's better to close solved issues to let the opening issues number down. 😂 |
the 2.0.0 release use form-data@1.0.0-rc4
while will cause
the call chain
The text was updated successfully, but these errors were encountered: