Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic authored Dec 3, 2024
1 parent 17a98c5 commit 2d2ad77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ def hash_directory_contents(directory):
def get_headers(api, token):
if api:
return {
'Authorization': f'token {token}'
'Authorization': f'token {token}',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'
}
else:
return {
'Authorization': f'Bearer {token}',
'Accept': 'application/octet-stream'
'Accept': 'application/octet-stream',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'
}

# Function to fetch release details from GitHub
Expand Down

0 comments on commit 2d2ad77

Please sign in to comment.