Fixed bug where content length was being sent when -1