summaryrefslogtreecommitdiff
path: root/swiftclient/client.py
diff options
context:
space:
mode:
authorJoel Wright <joel.wright@sohonet.com>2016-02-25 17:13:35 +0000
committerJoel Wright <joel.wright@sohonet.com>2016-02-26 11:36:45 +0000
commit46d817828082105a69d4da53fef2f2fbefc54809 (patch)
tree017638b3977b74350b95cd3aa28ff5b00a93c993 /swiftclient/client.py
parentee905477ac6fad7c43e875d7e52b22a494ef3d6f (diff)
downloadpython-swiftclient-46d817828082105a69d4da53fef2f2fbefc54809.tar.gz
Fix test for redacting sensitive data in client.http_log()
The test should have included utf8 encoded unicode data to test that encoded unicode data stored in headers was parsed correctly. Also fixes the docstring for swiftclient.safe_value() Change-Id: Id0def0b3af7a364f1257cc22f67b71c0cc5d8479
Diffstat (limited to 'swiftclient/client.py')
-rw-r--r--swiftclient/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py
index 8375fed..f65d4bb 100644
--- a/swiftclient/client.py
+++ b/swiftclient/client.py
@@ -103,7 +103,7 @@ def safe_value(name, value):
:param name: Header name
:param value: Header value
- :return: Safe (header, value) pair
+ :return: Safe header value
"""
if name.lower() in LOGGER_SENSITIVE_HEADERS:
prefix_length = logger_settings.get('reveal_sensitive_prefix', 16)