Fixed bug where content length was being sent when -1
Merge pull request #1 from hhariri/master

getting changes