瀏覽代碼

Fixed CSV download and caching

Andrew Kane 8 年之前
父節點
當前提交
11f0491c73
共有 1 個文件被更改,包括 3 次插入0 次删除
  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