mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 13:30:49 +08:00 
			
		
		
		
	brought in flurl and stated adding tests for the requester
This commit is contained in:
		@@ -47,9 +47,9 @@ namespace Ocelot.Library.Middleware
 | 
			
		||||
 | 
			
		||||
            var downstreamUrl = _urlReplacer.ReplaceTemplateVariables(downstreamRoute.Data);
 | 
			
		||||
 | 
			
		||||
            var response = await _requester.GetResponse(context.Request.Method, downstreamUrl);
 | 
			
		||||
            var response = await _requester.GetResponse(context.Request.Method, downstreamUrl, context.Request.Body);
 | 
			
		||||
 | 
			
		||||
            context = await _responder.CreateSuccessResponse(context, response);
 | 
			
		||||
            await _responder.CreateResponse(context, response);
 | 
			
		||||
 | 
			
		||||
            await _next.Invoke(context);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user