check content length up front againt the configured limit