Fix xcc breaking the standard webclient

The XCC requires a different auth header for non-redfish calls.  Isolate
xcc changes to the xcc usage.

Change-Id: I9891a0a3e79cbe119da96f6db6e12725ca86f3bd
This commit is contained in:
Jarrod Johnson
2019-06-03 15:18:18 -04:00
parent 9b9c37277b
commit 0fac38cdf3

View File

@@ -17,6 +17,7 @@
# 2.6 as is found in commonly used enterprise linux distributions.
import base64
import copy
import gzip
import json
import pyghmi.exceptions as pygexc
@@ -121,7 +122,7 @@ class SecureHTTPConnection(httplib.HTTPConnection, object):
if clone:
self._certverify = clone._certverify
self.cookies = clone.cookies
self.stdheaders = clone.stdheaders
self.stdheaders = copy.deepcopy(clone.stdheaders)
else:
self._certverify = verifycallback
self.cookies = {}