Show log.gz files as text in browser

This commit is contained in:
Wedge 2020-07-17 15:09:18 +03:00
parent 801304cabb
commit 40536d4d4d
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ module FileStoreHelper
def file_store_results_url(sha1, file_name)
url = "#{APP_CONFIG['file_store_url']}/api/v1/file_stores/#{sha1}"
url << '.log?show=true' if file_name =~ /.*\.(log|txt)$/
url << '.log?show=true' if file_name =~ /.*\.(log|txt|log\.gz|txt\.gz)$/
url
end