setting the content length to -1 should not write a header