diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 3fe40ed9f322..197a4478a40e 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -687,7 +687,11 @@ def get_data(self, urlstring: str) -> T.Tuple[str, str]: elif WHITELIST_SUBDOMAIN in urlstring: raise WrapException(f'{urlstring} may be a WrapDB-impersonating URL') else: - headers = {'User-Agent': f'mesonbuild/{coredata.version}'} + headers = { + 'User-Agent': f'mesonbuild/{coredata.version}', + 'Accept-Language': '*', + 'Accept-Encoding': '*', + } creds = self.get_netrc_credentials(url.netloc) if creds is not None and '@' not in url.netloc: