about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-06-05T14·03+0200
committerEelco Dolstra <edolstra@gmail.com>2018-06-05T14·03+0200
commit691b7582c76e05774548e84aba92ff0eb19b2589 (patch)
tree7c01d6b51fd6568115d03f268818724e6357f804 /src
parentca06a9cea706bf06374efeed276cf3a90d2eaa80 (diff)
Handle HTTP 410 Gone errors
Diffstat (limited to 'src')
-rw-r--r--src/libstore/download.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index c7cffedbadc8..7a5deed32143 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) {