VCR Cassette Cleaner
I made this tool to update the
Content-Length header to match the bytesize of the body response in VCR cassettes. This is only necessary when the body has been manually edited (usually done to reduce the size of the YAML fixture). While VCR has an option to automatically update the
Content-Length header on-the-fly (it doesn't update the cassette itself), the option also affects HEAD requests and sets their
Content-Length to 0 (issue). This tool will skip HEAD requests to avoid that.
This tool has only been tested with Ruby 2.6 and VCR 5.0.0.