bugfix content-length when not gzipped