Skip to content

Commit 45907ad

Browse files
authored
REST API
1 parent 3b8841d commit 45907ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/reapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def __init__(self):
4545

4646
def funInfo(self, boolConTune = False):
4747
# Check availability of SSL Labs servers, adjust concurrency and cool-off period
48+
if self.boolIM:
49+
self.strAnStNew += '&ignoreMismatch=on'
4850
try:
4951
objHResp = json.loads(self.objHS.get(self.strAPIE + self.strInfo).content)
5052
self.intCool = objHResp['newAssessmentCoolOff'] / 1000
@@ -62,8 +64,6 @@ def funAnalyze(self, strHost):
6264
# Initiate a new assessment for a host
6365
while True:
6466
try:
65-
if self.boolIM:
66-
self.strAnStNew += '&ignoreMismatch=on'
6767
objHResp = self.objHS.get(self.strAPIE + self.strAnalyze + strHost + self.strAnStNew)
6868
if objHResp.status_code in [429, 503, 529]:
6969
# 429 - client request rate too high or too many new assessments too fast

0 commit comments

Comments
 (0)