mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	Merge branch 'fix-1045' of https://github.com/catcherwong/Ocelot into catcherwong-fix-1045
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
namespace Ocelot.Requester
 | 
					namespace Ocelot.Requester
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    using Errors;
 | 
					    using Ocelot.Errors;
 | 
				
			||||||
    using Microsoft.Extensions.DependencyInjection;
 | 
					    using Microsoft.Extensions.DependencyInjection;
 | 
				
			||||||
    using System;
 | 
					    using System;
 | 
				
			||||||
    using System.Collections.Generic;
 | 
					    using System.Collections.Generic;
 | 
				
			||||||
@@ -23,7 +23,7 @@ namespace Ocelot.Requester
 | 
				
			|||||||
                return _mappers[type](exception);
 | 
					                return _mappers[type](exception);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (type == typeof(OperationCanceledException))
 | 
					            if (type == typeof(OperationCanceledException) || type.IsSubclassOf(typeof(OperationCanceledException)))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                return new RequestCanceledError(exception.Message);
 | 
					                return new RequestCanceledError(exception.Message);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user