X-Git-Url: http://git.ozlabs.org/?p=patchwork;a=blobdiff_plain;f=apps%2Fpatchwork%2Fviews%2Fpatch.py;h=62ff8531b02967d83094b8732586c1acdbb31b38;hp=5eedcb56acbf0b769df0fb5c8ee46da6217cafeb;hb=04e6689193c778fcfbff192e8d34af1dadf6560e;hpb=a48f76a2d3a98c21d4b37f19cf84073e77db55c8 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', '')