check for already existing content-length headers before replacing them
don't let flask automatically set the content length