Set Content-Length for empty data response.

Fix for pull request to fix issues in #123