Skip to content

Commit

Permalink
Merge c9f436f into 4183613
Browse files Browse the repository at this point in the history
  • Loading branch information
thorlacius committed Oct 7, 2019
2 parents 4183613 + c9f436f commit 3987f24
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions flask_graphql/graphqlview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3987f24

Please sign in to comment.