Handle HTTP 410 Gone errors
This commit is contained in:
		
							parent
							
								
									ca06a9cea7
								
							
						
					
					
						commit
						691b7582c7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -334,7 +334,7 @@ struct CurlDownloader : public Downloader
 | 
				
			||||||
                // We treat most errors as transient, but won't retry when hopeless
 | 
					                // We treat most errors as transient, but won't retry when hopeless
 | 
				
			||||||
                Error err = Transient;
 | 
					                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
 | 
					                    // The file is definitely not there
 | 
				
			||||||
                    err = NotFound;
 | 
					                    err = NotFound;
 | 
				
			||||||
                } else if (httpStatus == 401 || httpStatus == 403 || httpStatus == 407) {
 | 
					                } else if (httpStatus == 401 || httpStatus == 403 || httpStatus == 407) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue