Skip to content

Commit 0e4b2e9

Browse files
committed
Merge pull request #6 from dylrei/master
Handle multipart form data
2 parents 76a181b + 0fddcc6 commit 0e4b2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql_django_view/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def parse_body(self, request):
9191
except:
9292
raise HttpError(HttpResponseBadRequest('POST body sent invalid JSON.'))
9393

94-
elif content_type == 'application/x-www-form-urlencoded':
94+
elif content_type in ['application/x-www-form-urlencoded', 'multipart/form-data']:
9595
return request.POST
9696

9797
return {}

0 commit comments

Comments
 (0)