temporarily backed out of content-length header change; it was breaking the API with net::ERR_CONTENT_LENGTH_MISMATCH errors