Removed Content-Length and rework the search and replace
Set Content-Length with the new size