2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-27 19:37:44 +00:00

Do not set referer on XCC

The referer can confuse the XCC with different Host headers
as presented by python httplib of different flavors.

Change-Id: I85eb09ec86cc597adf6a5f42b1f8edb3b943bce7
This commit is contained in:
Jarrod Johnson 2018-03-01 11:42:42 -05:00
parent 860a58a169
commit 5ed47bf9d0

View File

@ -545,6 +545,10 @@ class XCCClient(IMMClient):
PORTS = 'network_pPorts'
DEVNO = 'generic_devNo'
def __init__(self, ipmicmd):
super(XCCClient, self).__init__(ipmicmd)
self.adp_referer = None
def get_webclient(self):
cv = self.ipmicmd.certverify
wc = webclient.SecureHTTPConnection(self.imm, 443, verifycallback=cv)