Revision 8198fe61 snf-pithos-app/pithos/api/util.py

b/snf-pithos-app/pithos/api/util.py
1116 1116
        def wrapper(request, *args, **kwargs):
1117 1117
            token = get_token_from_cookie(request)
1118 1118
            if token is None:
1119
                return HttpResponseRedirect('%s?next=%s' % (LOGIN_URL,
1120
                                                            request.path))
1119
                return HttpResponseRedirect('%s?next=%s' % (
1120
                    LOGIN_URL, join_urls(BASE_HOST, request.path)))
1121 1121
            request.META['HTTP_X_AUTH_TOKEN'] = token
1122 1122
            # Get the response object
1123 1123
            response = func(request, *args, **kwargs)

Also available in: Unified diff