puppetlabs/puppet — pull request #2000 by zaphod42 (2013-10-16 19:29:42+00:00)
Title: (#22891) Use the most preferred supported format

Previously the code had assumed that the order of the supported formats
didn't mean anything. However, the preferred_serialization_format, and other
factors, meant that the order really does matter. This makes the selected
format, when the Accept header is */* be the most preferred, supported
format.