Added Accept http header as Citi now requires it

Without this header set Citi returns http 403 for every request.
This commit is contained in:
johnny 2021-08-27 21:56:02 -07:00 committed by Aaron Lindsay
parent 12ea3b7e8b
commit cb48d30deb
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ func (c *BasicClient) RawRequest(URL string, r io.Reader) (*http.Response, error
return nil, err
}
request.Header.Set("Content-Type", "application/x-ofx")
request.Header.Add("Accept", "*/*, application/x-ofx")
if c.UserAgent != "" {
request.Header.Set("User-Agent", c.UserAgent)
}