Keep a single Content-Type response header in WireMock stub files

MSAL

WireMock 3 ran on Jetty 11, which stripped every Content-Type response header but the last, so a stub file listing several of them served only one. WireMock 4 returns all of them, and some clients reject a response carrying more than one. Keep only the last value, which is the one WireMock 3 actually sent. Only JSON below a mappings directory is considered, and request header matchers are untouched, since those hold matcher objects rather than plain strings. This is a 3 to 4 migration step: run against a project already on 4.x that deliberately serves more than one Content-Type, it would drop values that are currently reaching the client.

org.openrewrite.java.testing.wiremock.RemoveDuplicateContentTypeStubHeader
mod run . --recipe=org.openrewrite.java.testing.wiremock.RemoveDuplicateContentTypeStubHeader

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.