Content length long method doesn't exist on some servlet implementations, so we are changing it back to the old int method.