diff options
author | Jonathan <jonacom@lissismore.com> | 2019-01-23 15:28:56 -0500 |
---|---|---|
committer | Jonathan <jonacom@lissismore.com> | 2019-01-23 15:28:56 -0500 |
commit | 1930f20690d8a2d34fbd255794d329e08c1335ef (patch) | |
tree | ebefa0c795a04670cb5744058af3bd6c5931c888 /lib/bundler/fetcher/index.rb | |
parent | e66e6f2fb7d595151bd77a342a07c9cd15e3cac0 (diff) | |
download | bundler-1930f20690d8a2d34fbd255794d329e08c1335ef.tar.gz |
raise BadAuthenticationError when userinfo is found in 401 responses
Diffstat (limited to 'lib/bundler/fetcher/index.rb')
-rw-r--r-- | lib/bundler/fetcher/index.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/fetcher/index.rb b/lib/bundler/fetcher/index.rb index 1a8064624d..eb32186eea 100644 --- a/lib/bundler/fetcher/index.rb +++ b/lib/bundler/fetcher/index.rb @@ -13,6 +13,7 @@ module Bundler when /certificate verify failed/ raise CertificateFailureError.new(display_uri) when /401/ + raise BadAuthenticationError, remote_uri if remote_uri.userinfo raise AuthenticationRequiredError, remote_uri when /403/ raise BadAuthenticationError, remote_uri if remote_uri.userinfo |