lib/sinatra/respond_to.rb in wakame-vdc-agents-10.12.0 vs lib/sinatra/respond_to.rb in wakame-vdc-agents-11.06.0
- old
+ new
@@ -39,9 +39,12 @@
#
# get '/resource'
#
# and the format will automatically be available in <tt>format</tt>
app.before do
+
+ response['Content-Type'] = ''
+
# Let through sinatra image urls in development
next if self.class.development? && request.path_info =~ %r{/__sinatra__/.*?.png}
unless options.static? && options.public? && (request.get? || request.head?) && static_file?(request.path_info)
rpi = request.path_info.sub(%r{\.([^\./]+)$}, '')