electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 479a6f84e70eb28b75a845584a3f41493a515328
parent 78e68507e174fc80bbf16dd149e795d4e69e00e9
Author: ThomasV <thomasv@gitorious>
Date:   Wed, 10 Jun 2015 09:04:34 +0200

paymentrequest: add headers to http request

Diffstat:
Mlib/paymentrequest.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py @@ -59,7 +59,7 @@ import json def get_payment_request(url): u = urlparse.urlparse(url) if u.scheme in ['http', 'https']: - response = requests.request('GET', url) + response = requests.request('GET', url, headers=REQUEST_HEADERS) data = response.content print_error('fetched payment request', url, len(data)) elif u.scheme == 'file':