mirror of
https://github.com/sherlock-project/sherlock
synced 2025-02-16 12:38:27 +00:00
Clean up code that only reads the headers if we are doing HTTP Status detection. Remove special check for GitHub: everything works fine without it.
This commit is contained in:
parent
208db5a7c1
commit
7e2eb5bab3
1 changed files with 5 additions and 5 deletions
10
sherlock.py
10
sherlock.py
|
@ -225,11 +225,11 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False,
|
|||
# from where the user profile normally can be found.
|
||||
url_probe = url_probe.format(username)
|
||||
|
||||
request_method = session.get
|
||||
if social_network != "GitHub":
|
||||
# If only the status_code is needed don't download the body
|
||||
if net_info["errorType"] == 'status_code':
|
||||
request_method = session.head
|
||||
#If only the status_code is needed don't download the body
|
||||
if net_info["errorType"] == 'status_code':
|
||||
request_method = session.head
|
||||
else:
|
||||
request_method = session.get
|
||||
|
||||
if net_info["errorType"] == "response_url":
|
||||
# Site forwards request to a different URL if username not
|
||||
|
|
Loading…
Add table
Reference in a new issue