Skip to content
Browse files

Merge pull request #37 from bloodeagle40234/raw-path-signature

fix signature bug to use RAW_PATH_INFO
  • Loading branch information...
2 parents 5e1a67c + b8b5998 commit 8834a08a322588c661ac5386d1d7bdd5cb617e65 @fujita committed Mar 14, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 swift3/middleware.py
View
5 swift3/middleware.py
@@ -266,7 +266,10 @@ def canonical_string(req):
for k in sorted(key.lower() for key in amz_headers):
buf += "%s:%s\n" % (k, amz_headers[k])
- path = req.path
+ # RAW_PATH_INFO is enabled in later version than eventlet 0.9.17.
+ # When using older version, swift3 uses req.path of swob instead
+ # of it.
+ path = req.environ.get('RAW_PATH_INFO', req.path)
if req.query_string:
path += '?' + req.query_string
if '?' in path:

0 comments on commit 8834a08

Please sign in to comment.
Something went wrong with that request. Please try again.