fix for trans id

This commit is contained in:
David Goetz 2011-08-29 12:39:20 -07:00
parent c296ade470
commit 4eecac0a22

View File

@ -207,7 +207,7 @@ def make_pre_authed_request(env, method, path, body=None, headers=None,
(Stolen from Swauth: https://github.com/gholt/swauth)
"""
newenv = {'REQUEST_METHOD': method, 'HTTP_USER_AGENT': agent}
for name in ('swift.cache', 'X-Trans-Id'):
for name in ('swift.cache', 'HTTP_X_TRANS_ID'):
if name in env:
newenv[name] = env[name]
newenv['swift.authorize'] = lambda req: None