From 4ab0b38fd77f9036e60a35b3079a07321912dcd0 Mon Sep 17 00:00:00 2001 From: Justin Middleton Date: Sat, 6 Sep 2014 17:54:58 -0700 Subject: [PATCH] s/mimetype/content_type/ for kwargs to HTTPResponse in views.py. --- provider/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provider/views.py b/provider/views.py index dd1200df..41e0df95 100644 --- a/provider/views.py +++ b/provider/views.py @@ -298,7 +298,7 @@ def error_response(self, error, mimetype='application/json', status=400, Return an error response to the client with default status code of *400* stating the error as outlined in :rfc:`5.2`. """ - return HttpResponse(json.dumps(error), mimetype=mimetype, + return HttpResponse(json.dumps(error), content_type=mimetype, status=status, **kwargs) def get(self, request): @@ -463,7 +463,7 @@ def error_response(self, error, mimetype='application/json', status=400, Return an error response to the client with default status code of *400* stating the error as outlined in :rfc:`5.2`. """ - return HttpResponse(json.dumps(error), mimetype=mimetype, + return HttpResponse(json.dumps(error), content_type=mimetype, status=status, **kwargs) def access_token_response(self, access_token): @@ -488,7 +488,7 @@ def access_token_response(self, access_token): pass return HttpResponse( - json.dumps(response_data), mimetype='application/json' + json.dumps(response_data), content_type='application/json' ) def authorization_code(self, request, data, client):