This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 80415f0 commented private code that is definitely never used
80415f0 is described below
commit 80415f05d621c861aeaa791fa93a1c3bee8b84bc
Author: Jens Geyer <[email protected]>
AuthorDate: Tue Apr 13 21:21:16 2021 +0200
commented private code that is definitely never used
This closes #2375
---
lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs
b/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs
index dd30d3d..a013a9a 100644
--- a/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs
+++ b/lib/netstd/Thrift/Transport/Server/THttpServerTransport.cs
@@ -31,8 +31,10 @@ namespace Thrift.Transport.Server
public class THttpServerTransport
{
protected const string ContentType = "application/x-thrift";
+ /* never used
private readonly ILogger _logger;
private readonly RequestDelegate _next;
+ */
protected Encoding Encoding = Encoding.UTF8;
protected TProtocolFactory InputProtocolFactory;
@@ -85,11 +87,13 @@ namespace Thrift.Transport.Server
InputTransportFactory = inputTransFactory;
OutputTransportFactory = outputTransFactory;
+ /* never used
_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