Skip to content

Commit 87723fd

Browse files
committed
Merge pull request #2 from amitsaha/mimetype
Use request.mimetype instead of request.content_type
2 parents 3840761 + 0a30bca commit 87723fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: graphql_flask/graphqlview.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,6 @@ def format_error(error):
172172

173173
@staticmethod
174174
def get_content_type(request):
175-
return request.content_type
175+
# We use mimetype here since we don't need the other
176+
# information provided by content_type
177+
return request.mimetype

0 commit comments

Comments
 (0)