diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-12 01:51:08 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-12 01:51:08 +0900 |
| commit | 38d9f736aa4c74c27ba8d732371d372a8122c1c2 (patch) | |
| tree | f0989ea98f1b3cce1faa3876706e5cc95837dfa3 | |
| parent | [Server] Misskey API server is now accept a JSON as well as a application/x-w... (diff) | |
| download | sharkey-38d9f736aa4c74c27ba8d732371d372a8122c1c2.tar.gz sharkey-38d9f736aa4c74c27ba8d732371d372a8122c1c2.tar.bz2 sharkey-38d9f736aa4c74c27ba8d732371d372a8122c1c2.zip | |
[Test] Use JSON
| -rw-r--r-- | test/api.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); }); |