Fix CastAndValidate plug
authorEgor Kislitsyn <egor@kislitsyn.com>
Mon, 29 Jun 2020 13:33:00 +0000 (17:33 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Mon, 29 Jun 2020 13:33:00 +0000 (17:33 +0400)
lib/pleroma/web/api_spec/cast_and_validate.ex

index bd9026237044c7ba9f576c8718d69dadc101e9b7..fbfc27d6f7655cd3efe38556c9e3c706421a6081 100644 (file)
@@ -40,7 +40,7 @@ defmodule Pleroma.Web.ApiSpec.CastAndValidate do
           |> List.first()
 
         _ ->
-          nil
+          "application/json"
       end
 
     private_data = Map.put(private_data, :operation_id, operation_id)