diff options
author | Jürg Billeter <j@bitron.ch> | 2020-05-07 09:35:05 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-05-07 09:35:05 +0200 |
commit | 62eee7be681c74c6b6aa679acac9d27bf1b871e9 (patch) | |
tree | e6d5bf51d89ffcb55325fec4bbb800ccbb0cd936 | |
parent | a0d92fd8758d737885bf55bbe3b7c48139467707 (diff) | |
parent | 8cb72a2e6dd1277706e1aff95aade4595abefb8c (diff) | |
download | buildstream-62eee7be681c74c6b6aa679acac9d27bf1b871e9.tar.gz |
Merge branch 'willsalmon/backport1897' into bst-1bst-1.4-branchpoint
_downloadablefilesource.py: Set user agent
See merge request BuildStream/buildstream!1898
-rw-r--r-- | buildstream/plugins/sources/_downloadablefilesource.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buildstream/plugins/sources/_downloadablefilesource.py b/buildstream/plugins/sources/_downloadablefilesource.py index ab8140de0..de1267212 100644 --- a/buildstream/plugins/sources/_downloadablefilesource.py +++ b/buildstream/plugins/sources/_downloadablefilesource.py @@ -107,6 +107,7 @@ class DownloadableFileSource(Source): default_name = os.path.basename(self.url) request = urllib.request.Request(self.url) request.add_header('Accept', '*/*') + request.add_header('User-Agent', 'BuildStream/1') # We do not use etag in case what we have in cache is # not matching ref in order to be able to recover from |