diff --git a/installsystems/tools.py b/installsystems/tools.py index 452c4d86779850f32cc45e3600c8aa70cb5d964f..c6a2dd41fb698185f96aae2d92c94caa50f94d87 100644 --- a/installsystems/tools.py +++ b/installsystems/tools.py @@ -139,7 +139,10 @@ class PipeFile(object): Open a file accross an http server ''' try: - self.fo = urllib2.urlopen(path, timeout=self.timeout) + headers = {"User-Agent": "%s v%s" % (installsystems.canonical_name, + installsystems.version)} + request = urllib2.Request(path, None, headers) + self.fo = urllib2.urlopen(request, timeout=self.timeout) except Exception as e: raise ISError("Unable to open %s" % path, e) # get file size