Skip to content

Commit

Permalink
Fix issue verement#9
Browse files Browse the repository at this point in the history
Eligius does not require a password, so make it default to the empty string.
  • Loading branch information
devurandom committed Apr 10, 2013
1 parent f852c75 commit 5d62a7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bitcoin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5d62a7c

Please sign in to comment.