mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Fixed order of allowed formats to be sorted.
This commit is contained in:
parent
ae3cd0f0dd
commit
a236fb08af
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ module HTTParty
|
|||
# format :json
|
||||
# end
|
||||
def format(f)
|
||||
raise UnsupportedFormat, "Must be one of: #{AllowedFormats.values.map(&:to_s).uniq.sort.join(', ')}" unless AllowedFormats.value?(f)
|
||||
raise UnsupportedFormat, "Must be one of: #{AllowedFormats.values.map { |v| v.to_s }.uniq.sort.join(', ')}" unless AllowedFormats.value?(f)
|
||||
default_options[:format] = f
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue