diff options
author | Jenny Shen <jenny.shen@shopify.com> | 2022-09-16 11:37:55 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-09-29 17:56:35 +0900 |
commit | 17b783ad9e62070e8636800fe3aa9c5570a65bda (patch) | |
tree | af0c225b7a18bb9a0013922821a457a2f7ba884e /lib | |
parent | 1cbf0fd86356ccbac5556ab0f63ea8a4b08fd24d (diff) |
[rubygems/rubygems] Surface entire redirect uri in permanent redirections
https://github.com/rubygems/rubygems/commit/da7837630b
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/gemcutter_utilities.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index 1112498357..fb7b9149ba 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -213,8 +213,7 @@ module Gem::GemcutterUtilities say clean_text(response.body) end when Net::HTTPPermanentRedirect, Net::HTTPRedirection then - message = "The request has redirected permanently to #{Gem::Uri.parse(response['location']).origin}. " \ - "Please check your defined push host." + message = "The request has redirected permanently to #{response['location']}. Please check your defined push host." message = "#{error_prefix}: #{message}" if error_prefix say clean_text(message) |