More url checking
This commit is contained in:
parent
06f4f824d8
commit
a3267971e8
3 changed files with 10 additions and 1 deletions
|
@ -4,6 +4,8 @@ import requests
|
|||
from urllib.parse import urlparse
|
||||
from Crypto.PublicKey import RSA
|
||||
|
||||
from .urlutils import check_url
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@ -23,6 +25,9 @@ class ActorService(object):
|
|||
|
||||
def _fetch(self, actor_url):
|
||||
logger.debug(f'fetching remote object {actor_url}')
|
||||
|
||||
check_url(actor_url)
|
||||
|
||||
resp = requests.get(actor_url, headers={
|
||||
'Accept': 'application/activity+json',
|
||||
'User-Agent': self._user_agent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue