Added setting right Content-Length.