Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.0.5] - XXXX-XX-XX
- Fix Schwab header requirements

## [2.0.4] - 2019-02-10
- fix a number of python3 encoding issues
- fix bug with ConfigParser
Expand Down
5 changes: 5 additions & 0 deletions ofxclient/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ def client_args_for_bank(bank_info, ofx_version):
if 'www.accountonline.com' in bank_info['url']:
# Citi needs no User-Agent header
client_args['user_agent'] = False
if 'ofx.schwab.com' in bank_info['url']:
# Schwab needs just "application/x-ofx" in the accept header
# and no User-Agent header
client_args['accept'] = "application/x-ofx"
client_args['user_agent'] = False
return client_args

def write_and_handle_download(ofx_data, name):
Expand Down