Only allow image responses for repositories

This commit is contained in:
Henrik Hodne 2013-10-26 08:19:01 -05:00
parent 8ff052792c
commit 65267795f1

View File

@ -11,6 +11,10 @@ module Travis::Api::App::Responders
send_file(filename, type: :png, last_modified: last_modified)
end
def apply?
super && resource.is_a?(Repository)
end
private
def content_type