about summary refs log tree commit homepage
path: root/examples/rails_app-2.3.4/app
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-13 10:54:53 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-13 10:55:40 -0800
commit73ebdaf0445beb90a8397ca4a3ac05885b6b89fc (patch)
tree38710018019076defb7ccadce76db6f7fe2bba30 /examples/rails_app-2.3.4/app
parent474f31b22bdc90a1baf0cc5cc5e5a0cf22f5710a (diff)
downloadupr-73ebdaf0445beb90a8397ca4a3ac05885b6b89fc.tar.gz
JSON: set no-transform in headers
We can't have Rack::Deflater compressing long-pulling JS
Diffstat (limited to 'examples/rails_app-2.3.4/app')
-rw-r--r--examples/rails_app-2.3.4/app/controllers/progress_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/rails_app-2.3.4/app/controllers/progress_controller.rb b/examples/rails_app-2.3.4/app/controllers/progress_controller.rb
index b3d91f3..c3dddda 100644
--- a/examples/rails_app-2.3.4/app/controllers/progress_controller.rb
+++ b/examples/rails_app-2.3.4/app/controllers/progress_controller.rb
@@ -5,6 +5,7 @@ class ProgressController < ApplicationController
       :frequency => 0.5,
       :env => request.env,
     }
+    response.headers.update(Upr::JSON::RESPONSE_HEADERS)
     render(Upr::JSON.new(opt).rails_render_options)
   end
 end