You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2021/06/15 21:49:54 UTC

[thrift] branch THRIFT-5431 created (now b48303b)

This is an automated email from the ASF dual-hosted git repository.

jensg pushed a change to branch THRIFT-5431
in repository https://gitbox.apache.org/repos/asf/thrift.git.


      at b48303b  THRIFT-5431 Response should include 'content-type' header Client: netstd Patch: Jens Geyer

This branch includes the following new commits:

     new b48303b  THRIFT-5431 Response should include 'content-type' header Client: netstd Patch: Jens Geyer

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[thrift] 01/01: THRIFT-5431 Response should include 'content-type' header Client: netstd Patch: Jens Geyer

Posted by je...@apache.org.
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 <je...@apache.org>
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;