Keep a single Content-Type response header on WireMock stubs
MSALWireMock 3 ran on Jetty 11, which stripped every Content-Type response header but the last, so a stub configured with 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. 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. RemoveDuplicateContentTypeHeadermod run . --recipe= org. openrewrite. java. testing. wiremock. RemoveDuplicateContentTypeHeaderInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.