This is an automated email from the ASF dual-hosted git repository. jensg pushed a commit to branch THRIFT-5431 in repository https://gitbox.apache.org/repos/asf/thrift.git
commit b48303bad1fd89acd6c68461627e4698f52c1eda Author: Jens Geyer <[email protected]> AuthorDate: Tue Jun 15 23:42:48 2021 +0200 THRIFT-5431 Response should include 'content-type' header Client: netstd Patch: Jens Geyer --- lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs b/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs index a013a9a..a9a0a07 100644 --- a/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs +++ b/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs @@ -91,9 +91,9 @@ namespace Thrift.Transport.Server _next = next; _logger = (loggerFactory != null) ? loggerFactory.CreateLogger<THttpServerTransport>() : new NullLogger<THttpServerTransport>(); */ - } + } - public async Task Invoke(HttpContext context) + public async Task Invoke(HttpContext context) { context.Response.ContentType = ContentType; await ProcessRequestAsync(context, context.RequestAborted); //TODO: check for correct logic @@ -102,7 +102,6 @@ namespace Thrift.Transport.Server public async Task ProcessRequestAsync(HttpContext context, CancellationToken cancellationToken) { var transport = new TStreamTransport(context.Request.Body, context.Response.Body, Configuration); - try { var intrans = (InputTransportFactory != null) ? InputTransportFactory.GetTransport(transport) : transport;
