Closed toru-s closed 6 years ago
If you are intercepting the destination response using ReceivedResponseInterceptor
you are taking a full responsibility of what you are doing. So if you modify the response body it is up to you to modify the "Content-Length" header too. For example: data.getHeaders().set("Content-Length", ...)
.
Hi, My problem was solved. Cancel this pull request. Thank you so much for your help.
RequestForwarder return wrong content-length value when rewrite body.
my CustomReceivedResponseInterceptor is bellow.
Original response headers. rewrite off:
Original response headers. rewrite on: