diff --git a/flask_graphql/graphqlview.py b/flask_graphql/graphqlview.py index ff257b3..763c33b 100644 --- a/flask_graphql/graphqlview.py +++ b/flask_graphql/graphqlview.py @@ -141,10 +141,7 @@ def parse_body(self): return {} def should_display_graphiql(self): - if not self.graphiql or 'raw' in request.args: - return False - - return self.request_wants_html() + return self.graphiql and 'raw' not in request.args and self.request_wants_html() def request_wants_html(self): best = request.accept_mimetypes \