Revision b4c241e6 pithos/im/target/util.py
b/pithos/im/target/util.py | ||
---|---|---|
80 | 80 |
# TODO: Avoid redirect loops. |
81 | 81 |
parts = list(urlsplit(next)) |
82 | 82 |
# Do not pass on user and token if we are on the same server. |
83 |
if request.get_host() != parts[1]: |
|
83 |
if parts[1] and request.get_host() != parts[1]:
|
|
84 | 84 |
parts[3] = urlencode({'user': user.uniq, 'token': user.auth_token}) |
85 | 85 |
next = urlunsplit(parts) |
86 | 86 |
|
Also available in: Unified diff