diff options
author | Steve Martinelli <s.martinelli@gmail.com> | 2017-01-10 21:58:36 -0500 |
---|---|---|
committer | Steve Martinelli <s.martinelli@gmail.com> | 2017-01-10 22:35:14 -0500 |
commit | 51d16fa344829aadf454faf5e0c4535a8f96a7c8 (patch) | |
tree | 2c9bc0d73750bdb2d5273e863cb9c11c85049057 /releasenotes | |
parent | 56af8c90ecbb3cb5d29036151108b1e4e7a69bcc (diff) | |
download | python-keystoneclient-51d16fa344829aadf454faf5e0c4535a8f96a7c8.tar.gz |
Only log application/json in session to start3.9.0
When whitelisting content types to debug print from session we chose
application/json and application/text. application/text is not a real
mime type, text is typically text/plain.
Rather than guess at mime types only print application/json to start
with, but make it easy for additional types to be added later.
Adapted from keystoneauth: Ica5fee076cdab8b1d5167161d28af7313fad9477
Related-Bug: 1616105
Change-Id: Ieaa8fb3ea8d25e09b89498f23b70b18c0f6153f1
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml b/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml index 91529c6..e9c1c9c 100644 --- a/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml +++ b/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml @@ -3,6 +3,6 @@ fixes: - > [`bug 1616105 <https://bugs.launchpad.net/keystoneauth/+bug/1616105>`_] Only log the response body when the ``Content-Type`` header is set to - ``application/json`` or ``application/text``. This avoids logging large - binary objects (such as images). Other ``Content-Type`` will not be - logged. + ``application/json``. This avoids logging large binary objects (such as + images). Other ``Content-Type`` will not be logged. Additional + ``Content-Type`` strings can be added as required. |