Remove Content-Length and Transfer-Encoding Headers from spring servlet HTTP Response
<p>I want to know if there is a way of removing those headers from my current response. I am using the @ResponseBody annotation and already have tried using a Filter to try to not add those headers, based on the following <a href="https://stackoverflow.com/questions/7895196/how-do-delete-a-http-response-header">How do delete a HTTP response header?</a>.</p>

<p>Ideally, the HTTP response should be like the one from this link: <a href="https://api.github.com/users/mralexgray/repos" rel="nofollow noreferrer">https://api.github.com/users/mralexgray/repos</a> with no Content-Length and Transfer-Encoding headers.</p>