INNER CODE UNIT · Python
headerAdjustment
volkandindar/agartha · Agartha.py:120
def headerAdjustment(self, _header, _url, userID):
returnMethod = ''
headerMethod = 'GET'
header = ""
if "GET" not in _header[:3]:
_header = self._helpers.bytesToString(self._callbacks.getHelpers().toggleRequestMethod(_header))
headerMethod = 'POST'
histories = self._callbacks.getProxyHistory()[::-1]
for history in histories:
url = str(self._helpers.analyzeRequest(history).getUrl())
if url.startswith("https"):
url = url.replace(":443/", "/")
elif url.startswith("http"):
url = url.replace(":80/", "/")
if url == _url: