diff options
Diffstat (limited to 'apps/patchwork/views/patch.py')
-rw-r--r-- | apps/patchwork/views/patch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/patchwork/views/patch.py b/apps/patchwork/views/patch.py index 5eedcb5..62ff853 100644 --- a/apps/patchwork/views/patch.py +++ b/apps/patchwork/views/patch.py @@ -85,7 +85,7 @@ def patch(request, patch_id): def content(request, patch_id): patch = get_object_or_404(Patch, id=patch_id) - response = HttpResponse(mimetype="text/x-patch") + response = HttpResponse(content_type="text/x-patch") response.write(patch.content) response['Content-Disposition'] = 'attachment; filename=' + \ patch.filename().replace(';', '').replace('\n', '') @@ -93,7 +93,7 @@ def content(request, patch_id): def mbox(request, patch_id): patch = get_object_or_404(Patch, id=patch_id) - response = HttpResponse(mimetype="text/plain") + response = HttpResponse(content_type="text/plain") response.write(patch_to_mbox(patch).as_string(True)) response['Content-Disposition'] = 'attachment; filename=' + \ patch.filename().replace(';', '').replace('\n', '') |