# File keyring.rb, line 285 def self.http_protection_domain(uri, scheme, realm) uri = uri.dup # make it canonical root URL uri.path = "" uri.query = nil uri.fragment = nil [uri.to_s, scheme, realm] end