Made the required changes 

Check out the code that Nikhil has written in the Red Repo for the HttpResponse/ HttpRequest object, and ask Sanket to do necessary changes. In that case you don't have to set the content length.