Spring-cloud-gateway: Multiple "transfer-encoding: chunked" response header

Created on 2 Mar 2018  路  3Comments  路  Source: spring-cloud/spring-cloud-gateway

For a request via spring-cloud-gateway I am seeing multiple transfer-encoding response headers coming through, here is a sample raw header:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
transfer-encoding: chunked
transfer-encoding: chunked

I see the RemoveHopByHopHeadersFilter removing such headers before making the downstream call, however, it looks like such a filter may be needed once the downstream request is completed also?

bug

Most helpful comment

I noticed that also the other day.

All 3 comments

I noticed that also the other day.

Will attempt a PR @spencergibb , I checked spring-cloud-netflix zuul and these headers do get removed before and after calling the downstream system, so a similar kind of implementation should work here too

Closed via 12ef935bf4dd1dd304d61604792ff680a9c02ec5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xfworld picture xfworld  路  3Comments

manishonline picture manishonline  路  3Comments

thirunar picture thirunar  路  6Comments

xiaozhiliaoo picture xiaozhiliaoo  路  4Comments

aresa7796 picture aresa7796  路  6Comments