Skip to content

Commit 0fddcc6

Browse files
author
Dylan Reinhardt
committed
Handle multipart form data
1 parent a7dedce commit 0fddcc6

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)