Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Flag to Set User Agent #65

Open
kevinjfoley opened this issue Mar 22, 2019 · 0 comments
Open

Add Flag to Set User Agent #65

kevinjfoley opened this issue Mar 22, 2019 · 0 comments

Comments

@kevinjfoley
Copy link

Charles Schwab requires headers to be set to None otherwise the request times out.

Quick fix is to set DEFAULT_USER_AGENT in client.py to None, then add the Schwab account and switch the value back.

I plan on opening a PR to add logic similar to

ofxclient/ofxclient/cli.py

Lines 242 to 244 in 6d6db69

if 'ofx.discovercard.com' in bank_info['url']:
# Discover needs no User-Agent and no Accept headers
client_args['user_agent'] = False
to handle it but wanted to open this in case others run into the issue in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant