mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 08:55:28 +08:00 
			
		
		
		
	Fix async/await warnings
This commit is contained in:
		@@ -221,13 +221,15 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
                .Configure(app =>
 | 
			
		||||
                {
 | 
			
		||||
                    app.UsePathBase(basePath);
 | 
			
		||||
                    app.Run(async context =>
 | 
			
		||||
                    app.Run(context => 
 | 
			
		||||
                    {   
 | 
			
		||||
                        context.Response.OnStarting(() => {
 | 
			
		||||
                            context.Response.Headers.Add(headerKey, headerValue);
 | 
			
		||||
                            context.Response.StatusCode = statusCode;
 | 
			
		||||
                            return Task.CompletedTask;
 | 
			
		||||
                        });
 | 
			
		||||
 | 
			
		||||
                        return Task.CompletedTask;
 | 
			
		||||
                    });
 | 
			
		||||
                })
 | 
			
		||||
                .Build();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user