Skip to content

Commit

Permalink
feat: ignore 415 code check (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwencool authored May 21, 2024
1 parent b169cab commit a1a08e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/minirest_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ reply_with_body(StatusCode, Headers, {qlc_handle, _} = BodyQH, Req0) ->

maybe_ignore_code_check(401, _Code) -> true;
maybe_ignore_code_check(403, _Code) -> true;
maybe_ignore_code_check(415, _Code) -> true;
maybe_ignore_code_check(400, 'BAD_REQUEST') -> true;
maybe_ignore_code_check(500, 'INTERNAL_ERROR') -> true;
maybe_ignore_code_check(_, _) -> false.
Expand Down

0 comments on commit a1a08e3

Please sign in to comment.