summaryrefslogtreecommitdiff
path: root/lib/rubygems/remote_fetcher.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/remote_fetcher.rb4
1 files changed, 3 insertions, 1 deletions
@@ -26,13 +26,15 @@ class Gem::RemoteFetcher
##
# The URI which was being accessed when the exception happened.
- attr_accessor :uri
def initialize(message, uri)
super message
uri = parse_uri(uri)
uri.password = 'REDACTED' if uri.respond_to?(:password) && uri.password
@uri = uri.to_s