diff --git a/Agartha.py b/Agartha.py index b593e62..f7da978 100644 --- a/Agartha.py +++ b/Agartha.py @@ -114,7 +114,7 @@ def makeHttpCall(self, urlAdd, userID): _httpReqRes = self._callbacks.makeHttpRequest(self._helpers.buildHttpService(urlparse.urlparse(urlAdd).hostname, portNum, urlparse.urlparse(urlAdd).scheme), header) self.httpReqRes[userID].append(_httpReqRes) - return "HTTP " + str(self._helpers.analyzeResponse(self._helpers.bytesToString(_httpReqRes.getResponse())).getStatusCode()) + " : " + format(len(self._helpers.bytesToString(_httpReqRes.getResponse())) - self._helpers.analyzeResponse(self._helpers.bytesToString(_httpReqRes.getResponse())).getBodyOffset(), ',d') + "bytes" + return "HTTP " + str(self._helpers.analyzeResponse(self._helpers.bytesToString(_httpReqRes.getResponse())).getStatusCode()) + " : " + format(len(self._helpers.bytesToString(_httpReqRes.getResponse())) - self._helpers.analyzeResponse(self._helpers.bytesToString(_httpReqRes.getResponse())).getBodyOffset(), ',d') + " bytes" except: return str(sys.exc_info()[1]) @@ -775,7 +775,6 @@ def _tabAuthUI(self): self._cbAuthGETPOST.setSelectedIndex(0) self._cbAuthGETPOST.setToolTipText("Which HTTP method will be used for the test.") - #self._cbSiteMapDepth = JComboBox(list(range(0, 11))) self._cbSiteMapDepth = JComboBox(('Only current URL', 'Max crawl depth is 1', 'Max crawl depth is 2', 'Max crawl depth is 3', 'Max crawl depth is 4', 'Max crawl depth is 5', 'Max crawl depth is 6', 'Max crawl depth is 7', 'Max crawl depth is 8', 'Max crawl depth is 9', 'Max crawl depth is 10')) self._cbSiteMapDepth.setPreferredSize(Dimension(150, 27)) self._cbSiteMapDepth.setSelectedIndex(3)