diff options
author | Jenny Shen <[email protected]> | 2022-09-16 11:37:55 -0400 |
---|---|---|
committer | git <[email protected]> | 2022-09-29 17:56:35 +0900 |
commit | 17b783ad9e62070e8636800fe3aa9c5570a65bda () | |
tree | af0c225b7a18bb9a0013922821a457a2f7ba884e /lib/rubygems/gemcutter_utilities.rb | |
parent | 1cbf0fd86356ccbac5556ab0f63ea8a4b08fd24d (diff) |
[rubygems/rubygems] Surface entire redirect uri in permanent redirections
https://.com/rubygems/rubygems/commit/da7837630b
-rw-r--r-- | lib/rubygems/gemcutter_utilities.rb | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 = "#{error_prefix}: #{message}" if error_prefix say clean_text(message) |