lib/wunderbar/cgi-methods.rb in wunderbar-1.3.4 vs lib/wunderbar/cgi-methods.rb in wunderbar-1.4.0

- old
+ new

@@ -118,10 +118,10 @@ def call(scope) # asset support for Rack request = (scope.respond_to? :request) ? scope.request : nil if request and request.path =~ %r{/assets/\w[-.\w]+} - path = ('.' + scope.request.path).untaint + path = '.' + scope.request.path headers = {'type' => 'text/plain'} headers['type'] = 'application/javascript' if path =~ /\.js$/ out?(scope, headers) { File.read path if File.exist? path } return end