This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
check_scheme(req)
private
Ensures req has credentials that can be authenticated.
# File lib/webrick/httpauth/authenticator.rb, line 69
def check_scheme(req)
unless credentials = req[@request_field]
error("no credentials in the request.")
return nil
end
unless match = /^#{@auth_scheme}\s+/.match(credentials)
error("invalid scheme in %s.", credentials)
info("%s: %s", @request_field, credentials) if $DEBUG
return nil
end
return match.post_match
end