From 5d62a7c32b7c6a0cc41b34739c9e767d875c262b Mon Sep 17 00:00:00 2001 From: Dennis Schridde Date: Wed, 10 Apr 2013 18:35:23 +0300 Subject: [PATCH] Fix issue #9 Eligius does not require a password, so make it default to the empty string. --- bitcoin.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitcoin.rb b/bitcoin.rb index 81d7b9f..119d1c6 100644 --- a/bitcoin.rb +++ b/bitcoin.rb @@ -45,6 +45,9 @@ def self.rpc_proxy(server = {}, user_agent = nil) # This is a workaround; URI needs escaped username and password if username uri.user = URI.escape username, /[^#{URI::PATTERN::UNRESERVED}]/ + uri.password = '' + end + if password uri.password = URI.escape password, /[^#{URI::PATTERN::UNRESERVED}]/ end