Skip to content

Commit

Permalink
Set user-agent to opwngrid.xyz
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen Oudshoorn <[email protected]>
  • Loading branch information
jayofelony committed Jan 1, 2025
1 parent 09aace1 commit 358d400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnagotchi/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def is_connected():
try:
# check DNS
host = 'https://api.opwngrid.xyz/api/v1/uptime'
headers = {'user-agent': 'pwnagotchi/%s' % pwnagotchi.__version__}
headers = {'user-agent': f'pwnagotchi/{pwnagotchi.__version__}'}
r = requests.get(host, headers=headers, timeout=(30.0, 60.0))
if r.json().get('isUp'):
return True
Expand Down

0 comments on commit 358d400

Please sign in to comment.