Skip to content

Commit

Permalink
Merge pull request #26 from pasevin/fix-fetch
Browse files Browse the repository at this point in the history
Fix handling of binary data when using `fetch` endpoint
  • Loading branch information
jcohen02 committed Dec 18, 2019
2 parents 428c91d + d1b6dfd commit 443aa20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django_drf_filepond/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,7 @@ def get(self, request):
return result
else:
raise ValueError('process_request result is of an unexpected type')
response = Response(buf.getvalue(), status=status.HTTP_200_OK,
content_type=content_type)
response = HttpResponse(buf.getvalue(), content_type=content_type)
response['Content-Disposition'] = ('inline; filename=%s' %
upload_file_name)
return response

0 comments on commit 443aa20

Please sign in to comment.