Keep a single Content-Type response header while still on WireMock 3

MSAL

Collapse duplicate Content-Type response headers in both stub files and the Java DSL, but only where the module still depends on WireMock 3.x. Jetty 11 already served a single value there, so dropping the rest changes nothing; against 4.x the extra values really do reach the client, and removing them would.

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

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

Recipe list

It runs these recipes, in this order.

  1. Keep a single Content-Type response header on WireMock stubs
  2. Keep a single Content-Type response header in WireMock stub files