Comment 1 for bug 1638451

Revision history for this message
Gaƫtan Trellu (goldyfruit) wrote :

Please find the diff:

--- a/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py 2017-05-17 09:09:44.531448269 -0400
+++ b/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py 2017-05-17 09:07:22.038628580 -0400
@@ -372,6 +372,7 @@

     def request(self, *args, **kwargs):
         headers = kwargs.setdefault('headers', {})
+ headers.setdefault('Content-Type', 'application/json')
         headers.setdefault('Accept', 'application/json')

         try: