Skip to content

Commit

Permalink
Merge pull request #10 from jafacakes2011/fix-download-pdf
Browse files Browse the repository at this point in the history
Fix "Success" typo
  • Loading branch information
apexdodge authored Aug 2, 2021
2 parents 05ea971 + 7fd9aa3 commit bc5aabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api2pdf/api2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def result(self):

def download_pdf(self):
USERAGENT = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
if self.result['success']:
if self.result['Success']:
downloaded_file = requests.get(self.result['FileUrl'], headers=USERAGENT)
data = downloaded_file.content
return data
Expand Down

0 comments on commit bc5aabb

Please sign in to comment.