example/dump-server.rb in ruby-ajp-0.1.5 vs example/dump-server.rb in ruby-ajp-0.2.0

- old
+ new

@@ -1,7 +1,7 @@ #!/usr/bin/ruby -require 'net/ajp13server' +require 'net/ajp13/server' require 'erb' class DumpServer < Net::AJP13::Server include ERB::Util @@ -56,10 +56,10 @@ <% end %> </dl> <% if req.body_stream %> <% body = req.body_stream.read %> <% if %r(\Atext/) =~ req['content-type'] or - req['content-type'] == 'application/x-form-www-urlencoded' %> + req['content-type'] == 'application/x-www-form-urlencoded' %> <pre><%=h body %></pre> <% else %> <pre><%=[body].pack('m')%></pre> <% end %> <% end %>