Oops. I was appending to content-length every request.