Quellcode durchsuchen

Fixed CSV download and caching

Andrew Kane vor 8 Jahren
Ursprung
Commit
11f0491c73
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  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