method

check_uri

ruby latest stable - Class: WEBrick::HTTPAuth::DigestAuth

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

check_uri(req, auth_req)
private

No documentation available.

# File lib/webrick/httpauth/digestauth.rb, line 363
      def check_uri(req, auth_req)
        uri = auth_req['uri']
        if uri != req.request_uri.to_s && uri != req.unparsed_uri &&
           (@internet_explorer_hack && uri != req.path)
          error('%s: uri unmatch. "%s" for "%s"', auth_req['username'],
                auth_req['uri'], req.request_uri.to_s)
          return false
        end
        true
      end