Only allow image responses for repositories
This commit is contained in:
parent
8ff052792c
commit
65267795f1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user