Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-20 09:12:06 +0200
committerGitHub <noreply@github.com>2021-05-20 09:12:06 +0200
commitc0458cf6412fe1f376cdce9b0d1a35c7ffc00452 (patch)
treeb2342083074153571379055db373e316306d493c /archinstall
parenta39cb41159e9ed88c9133670c05afa2649be2392 (diff)
parent5b0f918d1bdbcac25502b3b8a195b97b13490255 (diff)
Merge pull request #484 from dylanmtaylor/patch-1
Have the configuration file request identify itself as coming from ArchInstall
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/__init__.py2
1 files changed, 1 insertions, 1 deletions
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)