From 4eecac0a220d0ba019d429b232bc9f79d79c3bf4 Mon Sep 17 00:00:00 2001 From: David Goetz Date: Mon, 29 Aug 2011 12:39:20 -0700 Subject: [PATCH] fix for trans id --- swift/common/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/common/wsgi.py b/swift/common/wsgi.py index ca73f65022..dcf0340456 100644 --- a/swift/common/wsgi.py +++ b/swift/common/wsgi.py @@ -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