Adds Content-Length header to direct responses.