1
0
Fork 0

Support form as string.

This commit is contained in:
Alan Plum 2015-01-20 16:54:04 +01:00
parent efc2026151
commit d6e0b6e82d
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ function request(req) {
} else if (!body) {
if (req.form) {
contentType = 'application/x-www-form-urlencoded';
body = querystringify(req.form, req.useQuerystring);
body = typeof req.form === 'string' ? req.form : querystringify(req.form, req.useQuerystring);
} else if (req.formData) {
// contentType = 'multipart/form-data';
// body = formData(req.formData);