Changed HttpResponse mimetype parameter to content_type,
as mimetype is deprecated.