Fixed 411 error message by supplying content length

Added code to support sending content length header to fix 411 http status code