From 40536d4d4d58c663ec27cf589dbec7ae7bea2a3e Mon Sep 17 00:00:00 2001 From: Wedge Date: Fri, 17 Jul 2020 15:09:18 +0300 Subject: [PATCH] Show log.gz files as text in browser --- app/helpers/file_store_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/file_store_helper.rb b/app/helpers/file_store_helper.rb index 573faeea1..2799263e3 100644 --- a/app/helpers/file_store_helper.rb +++ b/app/helpers/file_store_helper.rb @@ -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