From c4abdd00a337755a87120b23bf19ffc60289543e Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 12 Feb 2017 01:51:08 +0900 Subject: [PATCH] [Test] Use JSON --- test/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api.js b/test/api.js index 8c26d2138..c4b1b6980 100644 --- a/test/api.js +++ b/test/api.js @@ -43,7 +43,7 @@ const request = (endpoint, params, me) => new Promise((ok, ng) => { req = req.attach(file[0], file[1]); } - req.set('content-type', 'application/x-www-form-urlencoded').send(Object.assign(auth, params)) + req.send(Object.assign(auth, params)) .end((err, res) => { ok(res); });