diff options
-rw-r--r-- | src/buildstream/plugins/sources/_downloadablefilesource.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildstream/plugins/sources/_downloadablefilesource.py b/src/buildstream/plugins/sources/_downloadablefilesource.py index ad8fe9f22..fcdd005ac 100644 --- a/src/buildstream/plugins/sources/_downloadablefilesource.py +++ b/src/buildstream/plugins/sources/_downloadablefilesource.py @@ -163,6 +163,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/2") # We do not use etag in case what we have in cache is # not matching ref in order to be able to recover from |