From 38d9f736aa4c74c27ba8d732371d372a8122c1c2 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 8c26d21386..c4b1b69807 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); });