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:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user