From 06391a7d1461679a21d2ab599e059ae385f7e64a Mon Sep 17 00:00:00 2001 From: aqa510415008 <510415008@qq.com> Date: Tue, 25 Sep 2018 12:00:40 +0800 Subject: [PATCH] Upgrade to Ocelot 12.0.0 --- example/OcelotOrleans.AspNetCore/Program.cs | 1 - .../Ocelot.OrleansHttpGateway.csproj | 4 ++-- src/Ocelot.OrleansHttpGateway/OrleansRequesterMiddleware.cs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/example/OcelotOrleans.AspNetCore/Program.cs b/example/OcelotOrleans.AspNetCore/Program.cs index 1b744f1..9d6d478 100644 --- a/example/OcelotOrleans.AspNetCore/Program.cs +++ b/example/OcelotOrleans.AspNetCore/Program.cs @@ -7,7 +7,6 @@ using Ocelot.Middleware; using Ocelot.OrleansHttpGateway.Configuration; using Ocelot.OrleansHttpGateway.Requester; -using Ocelot.Provider.Consul; using Orleans.Hosting; using System; using System.IO; diff --git a/src/Ocelot.OrleansHttpGateway/Ocelot.OrleansHttpGateway.csproj b/src/Ocelot.OrleansHttpGateway/Ocelot.OrleansHttpGateway.csproj index 21bc47b..6bfbdc6 100644 --- a/src/Ocelot.OrleansHttpGateway/Ocelot.OrleansHttpGateway.csproj +++ b/src/Ocelot.OrleansHttpGateway/Ocelot.OrleansHttpGateway.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 1.1.0-bate1 + 1.2.0 true aqa510415008 aling @@ -23,7 +23,7 @@ - + diff --git a/src/Ocelot.OrleansHttpGateway/OrleansRequesterMiddleware.cs b/src/Ocelot.OrleansHttpGateway/OrleansRequesterMiddleware.cs index 90078a4..67b63ba 100644 --- a/src/Ocelot.OrleansHttpGateway/OrleansRequesterMiddleware.cs +++ b/src/Ocelot.OrleansHttpGateway/OrleansRequesterMiddleware.cs @@ -100,7 +100,7 @@ public async Task Invoke(DownstreamContext context) } Logger.LogDebug("setting http response message"); context.HttpContext.Response.ContentType = resultResponse.Data.Content.ContentType; - context.DownstreamResponse = new DownstreamResponse(resultResponse.Data.Content, resultResponse.Data.StatusCode, resultResponse.Data.Headers); + context.DownstreamResponse = new DownstreamResponse(resultResponse.Data.Content, resultResponse.Data.StatusCode, resultResponse.Data.Headers,""); }