diff --git a/package_control/downloaders/oscrypto_downloader.py b/package_control/downloaders/oscrypto_downloader.py index 7d6346cc..93791149 100644 --- a/package_control/downloaders/oscrypto_downloader.py +++ b/package_control/downloaders/oscrypto_downloader.py @@ -171,7 +171,7 @@ def download(self, url, error_message, timeout, tries, prefer_cached=False): if code == 304: return self.cache_result('get', url, code, resp_headers, b'') - if code == 301: + if code == 301 or code == 302: location = resp_headers.get('location') if not isinstance(location, str): raise OscryptoDownloaderException('Missing or duplicate Location HTTP header')