Flowdock
redirect_to_directory_uri(req, res) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/webrick/httpservlet/abstract.rb, line 58
      def redirect_to_directory_uri(req, res)
        if req.path[-1] != //
          location = WEBrick::HTTPUtils.escape_path(req.path + "/")
          if req.query_string && req.query_string.bytesize > 0
            location << "?" << req.query_string
          end
          res.set_redirect(HTTPStatus::MovedPermanently, location)
        end
      end
Register or log in to add new notes.