add in content-length to prevent nginx adding in chunked (bug 1000992)