Merge branch 'fix/useless-header' into 'develop'
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>
Tue, 2 Mar 2021 20:47:21 +0000 (20:47 +0000)
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>
Tue, 2 Mar 2021 20:47:21 +0000 (20:47 +0000)
Test: remove useless header on the get request

See merge request pleroma/pleroma!3357

test/pleroma/web/mastodon_api/controllers/status_controller_test.exs

index 39ab90ba6689bc17bb03e2498a81e614522aa79e..f616f405e39d4a029defa8f6de4ec7e06ba9557c 100644 (file)
@@ -384,7 +384,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
 
       result =
         conn
-        |> put_req_header("content-type", "application/json")
         |> get("api/v1/statuses/#{activity}")
 
       assert %{
@@ -414,7 +413,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
 
       result =
         conn
-        |> put_req_header("content-type", "application/json")
         |> get("api/v1/statuses/#{activity}")
 
       assert %{