1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-12-24 22:23:21 -05:00

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

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)
}