Be sure to download a pdf
This commit is contained in:
parent
b593e69e64
commit
3235a00f09
1 changed files with 3 additions and 1 deletions
|
|
@ -115,4 +115,6 @@ class INGBackend(BaseBackend, ICapBank, ICapBill):
|
|||
if not isinstance(bill, Bill):
|
||||
bill = self.get_bill(bill)
|
||||
self.browser.predownload(bill)
|
||||
return self.browser.open("https://secure.ingdirect.fr" + bill._url, stream=True).content
|
||||
request = self.browser.open("https://secure.ingdirect.fr" + bill._url, stream=True)
|
||||
assert(request.headers['content-type'] == "application/pdf")
|
||||
return request.content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue