Add mime-types and content length guard