Skip to content

Commit

Permalink
Fix installer User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
absltkaos committed Mar 9, 2021
1 parent faae84a commit 43e73bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def action_install(repo_path, set_version=None, **kwargs):
log.info("Loading done. size=%s", len(data))
else:
log.info("Downloading version: %s...", set_version)
status, data = http_request(packages[set_version]['path'], decode=False, logger=log)
# Impersonate curl so the gitlab doesn't throw a 403 forbidden....
status, data = http_request(packages[set_version]['path'], headers={'User-Agent': 'curl/7.66.0'}, decode=False, logger=log)
log.info("Downloading done. Status=%s size=%s", status, len(data))
if status:
homedir = os.path.expanduser('~')
Expand Down

0 comments on commit 43e73bd

Please sign in to comment.