diff --git a/lib/request/connect.py b/lib/request/connect.py index fac8401db..b943189bf 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -324,7 +324,7 @@ class Connect: return page, responseHeaders @staticmethod - def queryPage(value=None, place=None, content=False, getSeqMatcher=False, silent=False, method=None, timeBasedCompare=False, auxHeaders=None, response=False, raise404=None): + def queryPage(value=None, place=None, content=False, getSeqMatcher=False, silent=False, method=None, timeBasedCompare=False, noteResponseTime=True, auxHeaders=None, response=False, raise404=None): """ This method calls a function to get the target url page content and returns its page MD5 hash or a boolean value in case of @@ -422,7 +422,7 @@ class Connect: if timeBasedCompare: return wasLastRequestDelayed() - else: + elif noteResponseTime: kb.responseTimes.append(kb.lastQueryDuration) if content or response: diff --git a/lib/request/inject.py b/lib/request/inject.py index a1338d836..1bd523422 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -451,7 +451,7 @@ def goStacked(expression, silent=False): logger.debug(debugMsg) payload = agent.payload(newValue=query) - page, _ = Request.queryPage(payload, content=True, silent=silent) + page, _ = Request.queryPage(payload, content=True, silent=silent, noteResponseTime=False) return payload, page