[refs #113] Add json to mime types list
This commit is contained in:
parent
5d93d40693
commit
f46b179486
|
@ -42,7 +42,7 @@ module GitHelper
|
||||||
|
|
||||||
def choose_render_way(blob)
|
def choose_render_way(blob)
|
||||||
return :image if blob.mime_type.match(/image/)
|
return :image if blob.mime_type.match(/image/)
|
||||||
return :text if blob.mime_type.match(/text|xml/)
|
return :text if blob.mime_type.match(/text|xml|json/)
|
||||||
:binary
|
:binary
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue