From d695fe10d120633282cfb72937162ac4e9e30bd8 Mon Sep 17 00:00:00 2001 From: Devin Fee Date: Fri, 22 Sep 2017 23:37:13 -0700 Subject: [PATCH] Allow should be a string, not a list. --- graphql_server/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql_server/__init__.py b/graphql_server/__init__.py index 8db8847..2b58f27 100644 --- a/graphql_server/__init__.py +++ b/graphql_server/__init__.py @@ -182,7 +182,7 @@ def execute_graphql_request(schema, params, allow_only_query=False, **kwargs): 405, 'Can only perform a {} operation from a POST request.'.format(operation_ast.operation), headers={ - 'Allow': ['POST'], + 'Allow': 'POST', } )