diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-06-05 16:03:32 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-06-05 16:03:32 +0200 |
commit | 691b7582c76e05774548e84aba92ff0eb19b2589 (patch) | |
tree | 7c01d6b51fd6568115d03f268818724e6357f804 | |
parent | ca06a9cea706bf06374efeed276cf3a90d2eaa80 (diff) |
Handle HTTP 410 Gone errors
-rw-r--r-- | src/libstore/download.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc index c7cffedba..7a5deed32 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -334,7 +334,7 @@ struct CurlDownloader : public Downloader // We treat most errors as transient, but won't retry when hopeless Error err = Transient; - if (httpStatus == 404 || code == CURLE_FILE_COULDNT_READ_FILE) { + if (httpStatus == 404 || httpStatus == 410 || code == CURLE_FILE_COULDNT_READ_FILE) { // The file is definitely not there err = NotFound; } else if (httpStatus == 401 || httpStatus == 403 || httpStatus == 407) { |