mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Continue even when a server replies with 403
Amazon S3 replies with a 403 when accessing files that don't exist, while this should be fixed at Amazon, we can workaround it in aptly for the moment.
This commit is contained in:
@@ -318,7 +318,7 @@ func DownloadTryCompression(downloader aptly.Downloader, url string, expectedChe
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if err1, ok := err.(*HTTPError); ok && err1.Code == 404 {
|
||||
if err1, ok := err.(*HTTPError); ok && err1.Code == 404 || err1.Code == 403 {
|
||||
continue
|
||||
}
|
||||
return nil, nil, err
|
||||
|
||||
Reference in New Issue
Block a user