Minor patch

This commit is contained in:
Miroslav Stampar
2019-05-06 01:46:41 +02:00
parent fdd1e49c75
commit eec048daf8
2 changed files with 2 additions and 2 deletions

View File

@@ -3577,7 +3577,7 @@ def createGithubIssue(errMsg, excMsg):
req = _urllib.request.Request(url="https://api.github.com/repos/sqlmapproject/sqlmap/issues", data=getBytes(json.dumps(data)), headers={HTTP_HEADER.AUTHORIZATION: "token %s" % decodeBase64(GITHUB_REPORT_OAUTH_TOKEN, binary=False), HTTP_HEADER.USER_AGENT: fetchRandomAgent()})
try:
content = _urllib.request.urlopen(req).read()
content = getText(_urllib.request.urlopen(req).read())
except Exception as ex:
content = None
_excMsg = getSafeExString(ex)