index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Dylan M. Taylor <dylan@dylanmtaylor.com> | 2021-05-19 18:16:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 18:16:28 -0400 |
commit | 5b0f918d1bdbcac25502b3b8a195b97b13490255 (patch) | |
tree | a37aa8a24ef992943e13b8efe333da15bccc5e80 | |
parent | 182babf33a8fd5ff08cdf5774b0a87c8e9386384 (diff) |
-rw-r--r-- | archinstall/__init__.py | 2 |
diff --git a/archinstall/__init__.py b/archinstall/__init__.py index 91e0cb12..ee4748f6 100644 --- a/archinstall/__init__.py +++ b/archinstall/__init__.py @@ -51,7 +51,7 @@ def initialize_arguments(): with open(args.config) as file: config = json.load(file) else: # Attempt to load the configuration from the URL. - with urllib.request.urlopen(args.config) as response: + with urllib.request.urlopen(urllib.request.Request(args.config, headers={'User-Agent': 'ArchInstall'})) as response: config = json.loads(response.read()) except Exception as e: print(e) |