Skip to content

Commit

Permalink
#506 upgrade to v 1.2. Use HEAD instead of GET request
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 29, 2019
1 parent 9600eed commit 5996658
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion analyzers/UnshortenLink/UnshortenLink.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "UnshortenLink",
"version": "1.1",
"version": "1.2",
"author": "Remi Pointel, CERT-BDF",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
Expand Down
2 changes: 1 addition & 1 deletion analyzers/UnshortenLink/unshortenlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run(self):

result = {'found': False, 'url': None}
try:
response = requests.get(url, proxies=proxies,
response = requests.head(url, proxies=proxies,
allow_redirects=False)

if (response.status_code == 301) or (response.status_code == 302):
Expand Down

0 comments on commit 5996658

Please sign in to comment.