Merge pull request #80 from travis-ci/hh-image-responder-repo

Only allow image responses for repositories
This commit is contained in:
Konstantin Haase 2013-10-26 06:46:28 -07:00
commit 645462ba26

View File

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