Prefer JSON to Atom feed
We should not break the current behavior when the client sends `Accept: */*` HTTP header.
This commit is contained in:
parent
8171d3915e
commit
e945476c8d
|
@ -49,7 +49,7 @@ class Travis::Api::App
|
||||||
end
|
end
|
||||||
|
|
||||||
def responders(resource, options)
|
def responders(resource, options)
|
||||||
[:Atom, :Json, :Image, :Xml, :Plain].map do |name|
|
[:Json, :Atom, :Image, :Xml, :Plain].map do |name|
|
||||||
Responders.const_get(name)
|
Responders.const_get(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user