Commit 8a221a91 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

astakos api: remove statements of no effect

parent 7aa4f62f
......@@ -237,7 +237,6 @@ def __get_uuid_displayname_catalogs(request, user_call=True):
'displayname_catalog':AstakosUser.objects.displayname_catalog(displaynames)}
response = HttpResponse()
response.status = 200
response.content = json.dumps(d)
response['Content-Type'] = 'application/json; charset=UTF-8'
response['Content-Length'] = len(response.content)
......
......@@ -90,7 +90,7 @@ def api_method(http_method=None, token_required=False, perms=None):
@api_method(http_method='GET', token_required=True)
def authenticate(request, user=None):
# Normal Response Codes: 204
# Normal Response Codes: 200
# Error Response Codes: internalServerError (500)
# badRequest (400)
# unauthorised (401)
......@@ -109,7 +109,6 @@ def authenticate(request, user=None):
raise Unauthorized('Pending approval terms')
response = HttpResponse()
response.status = 204
user_info = {
'id': user.id,
'username': user.username,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment