summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/open-uri/utils.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/open-uri/utils.rb b/test/open-uri/utils.rb
index b529ba8fe8..3a79a32ea1 100644
--- a/test/open-uri/utils.rb
+++ b/test/open-uri/utils.rb
@@ -1,5 +1,4 @@
require 'socket'
-require 'base64'
class SimpleHTTPServer
def initialize(bind_addr, port, log)
@@ -79,7 +78,7 @@ class SimpleHTTPServer
return unless auth && auth.start_with?('Basic ')
encoded_credentials = auth.split(' ', 2).last
- decoded_credentials = Base64.decode64(encoded_credentials)
+ decoded_credentials = [encoded_credentials].pack("m")
@username, @password = decoded_credentials.split(':', 2)
end
end