Merge pull request #80 from travis-ci/hh-image-responder-repo
Only allow image responses for repositories
This commit is contained in:
commit
645462ba26
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user