From: Giorgos Verigakis Date: Tue, 12 Jul 2011 15:10:55 +0000 (+0300) Subject: Return a correct x-storage-url X-Git-Tag: pithos/v0.7.8~215^2~1 X-Git-Url: https://code.grnet.gr/git/pithos/commitdiff_plain/a0177bc539cfd870aa0533cd984a9d4b90228b07 Return a correct x-storage-url Use the value of X-Auth-User instead of 'demo' --- diff --git a/pithos/api/functions.py b/pithos/api/functions.py index b7ac702..29d2f38 100644 --- a/pithos/api/functions.py +++ b/pithos/api/functions.py @@ -118,7 +118,8 @@ def authenticate(request): response = HttpResponse(status=204) inv_auth_tokens = dict((v, k) for k, v in settings.AUTH_TOKENS.items()) response['X-Auth-Token'] = inv_auth_tokens.get(x_auth_user, '0000') - response['X-Storage-Url'] = os.path.join(request.build_absolute_uri(), 'demo') + response['X-Storage-Url'] = os.path.join(request.build_absolute_uri(), + x_auth_user) return response @api_method('HEAD')