diff --git a/CHANGELOG.md b/CHANGELOG.md index d0312e2..6b412b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.5.6 + +- Bug Fix: [Handle invalid batch request structure](https://github.com/absinthe-graphql/absinthe_plug/pull/255) + ## v1.5.5 - Bug Fix: [Don't wipe out an existing pubsub value in context](https://github.com/absinthe-graphql/absinthe_plug/pull/249) diff --git a/lib/absinthe/plug/request.ex b/lib/absinthe/plug/request.ex index ec4bed0..c735ebf 100644 --- a/lib/absinthe/plug/request.ex +++ b/lib/absinthe/plug/request.ex @@ -56,6 +56,7 @@ defmodule Absinthe.Plug.Request do # Plug puts parsed params under the "_json" key when the # structure is not a map; otherwise it's just the keys themselves, # and they may sit in the body or in the params + defp is_batch?(params) do Map.has_key?(params, "_json") && is_list(params["_json"]) end diff --git a/mix.exs b/mix.exs index 03d5861..6e0a108 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Absinthe.Plug.Mixfile do use Mix.Project - @version "1.5.5" + @version "1.5.6" def project do [