lib/rdoc/servlet.rb in rdoc-6.0.0.beta3 vs lib/rdoc/servlet.rb in rdoc-6.0.0.beta4

- old
+ new

@@ -1,6 +1,6 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'rdoc' require 'time' require 'json' require 'webrick' @@ -109,10 +109,10 @@ ## # GET request entry point. Fills in +res+ for the path, etc. in +req+. def do_GET req, res - req.path.sub!(/^#{Regexp.escape @mount_path}/o, '') if @mount_path + req.path = req.path.sub(/^#{Regexp.escape @mount_path}/o, '') if @mount_path case req.path when '/' then root req, res when '/js/darkfish.js', '/js/jquery.js', '/js/search.js',