Skip to content

Commit 77c013f

Browse files
committed
improvement: honor allow_all_media_type_params? in content-type as well
1 parent 972698f commit 77c013f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ash_json_api/request.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ defmodule AshJsonApi.Request do
221221
true
222222

223223
{:ok, "application", "vnd.api+json", params} ->
224-
valid_header_params?(params)
224+
Application.get_env(:ash_json_api, :allow_all_media_type_params?, false) ||
225+
valid_header_params?(params)
225226

226227
_ ->
227228
false

0 commit comments

Comments
 (0)