Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add content-length: 0 for no content responses #124
In the current version content length header is not added if there isn't any content in the response. This behaviour creates a problem when accessing finatra application through an nginx proxy server. Since application doesn't send length data, the proxy server keeps the connection open until it times out. This results into long response times for responses to option requests, 301 responses etc.
Here I created two endpoints where the difference can be observed. Although when accessed from browser both endpoints behaves the same (and fine), when accessed via curl the behaviour is different. On the