summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/account_controller_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-10 14:18:57 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-10 14:18:57 +0400
commitcf2a0574e77ed207453215ae83377a3eb8f2fa0c (patch)
treefdc89909325238b71c8fc07a63d8720e432434c4 /test/web/mastodon_api/controllers/account_controller_test.exs
parent4a2538967caf5b0f9970cc5f973c16ea5d776aa3 (diff)
parentce089615e1e89fbb63b0c0548906f3b6c22abac2 (diff)
downloadpleroma-cf2a0574e77ed207453215ae83377a3eb8f2fa0c.tar.gz
pleroma-cf2a0574e77ed207453215ae83377a3eb8f2fa0c.zip
Merge branch 'develop' into fix/support-conversations-pagination
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/account_controller_test.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs
index a9fa0ce48..a450a732c 100644
--- a/test/web/mastodon_api/controllers/account_controller_test.exs
+++ b/test/web/mastodon_api/controllers/account_controller_test.exs
@@ -794,7 +794,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
test "Account registration via Application", %{conn: conn} do
conn =
- post(conn, "/api/v1/apps", %{
+ conn
+ |> put_req_header("content-type", "application/json")
+ |> post("/api/v1/apps", %{
client_name: "client_name",
redirect_uris: "urn:ietf:wg:oauth:2.0:oob",
scopes: "read, write, follow"