Kaynağa Gözat

Fixed CSV download and caching

Andrew Kane 8 yıl önce
ebeveyn
işleme
11f0491c73
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      app/controllers/blazer/queries_controller.rb

+ 3 - 0
app/controllers/blazer/queries_controller.rb

@@ -76,6 +76,9 @@ module Blazer
       data_source = @query.data_source if @query && @query.data_source
       @data_source = Blazer.data_sources[data_source]
 
+      # fix for CSV download and caching
+      @statement = @statement.to_s.gsub("\r\n", "\n")
+
       if @run_id
         @timestamp = blazer_params[:timestamp].to_i