mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-04-01 12:58:29 +00:00
When a HTTP input has a configured response content, then this should always be treated as preferred over the content type that is returned by the server in order to give the user the power to decide. This also refactors the code a bit to make it more readable. Closes elastic/elasticsearch#2211 Original commit: elastic/x-pack-elasticsearch@ecdb4f931c