Skip to content

Commit

Permalink
Fix merge dictionaries for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Jan 13, 2025
1 parent b6fb079 commit 8093de8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bitcoinlib/services/baseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def request(self, url_path, variables=None, method='get', secure=True, post_data
'User-Agent': 'BitcoinLib/%s' % BITCOINLIB_VERSION,
'Accept': 'application/json',
"Referrer": "https://www.github.com/1200wd/bitcoinlib",
} | (header or {})
}
if header:
headers.update(header)
if method == 'get':
if variables is None:
variables = {}
Expand Down

0 comments on commit 8093de8

Please sign in to comment.