Skip to content

Commit

Permalink
Merge branch 'ofxprofrq'
Browse files Browse the repository at this point in the history
  • Loading branch information
csingley committed Nov 18, 2020
2 parents 86aa1c2 + 823293b commit a59f1b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ofxtools/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ def http_headers(self) -> Dict[str, str]:
return {
"User-Agent": self.useragent,
"Content-type": mimetype,
"Accept": "*/*, {}".format(mimetype),
# Apparently Amex is unhappy unless it sees a MIME type of application/xml
# with some quality rating - ANY quality rating, it seems.
"Accept": "*/*, {}, application/xml;q=0.9".format(mimetype),
}

def dtclient(self) -> datetime.datetime:
Expand Down

0 comments on commit a59f1b2

Please sign in to comment.