Skip to content
Browse files

Set proper content type header for JS

  • Loading branch information...
1 parent 5260792 commit aece73e808fccb86d027faf28695fce0eefbd987 @jnicklas committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/bistro_car/bundle_controller.rb
View
1 app/controllers/bistro_car/bundle_controller.rb
@@ -2,6 +2,7 @@ class BistroCar::BundleController < ActionController::Base
caches_page :show
def show
+ headers['Content-Type'] = "application/javascript"
render :text => BistroCar::Bundle.new(params[:bundle]).to_javascript
end
end

0 comments on commit aece73e

Please sign in to comment.
Something went wrong with that request. Please try again.