1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-11-21 11:20:04 -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 return nil, err
} }
request.Header.Set("Content-Type", "application/x-ofx") request.Header.Set("Content-Type", "application/x-ofx")
request.Header.Add("Accept", "*/*, application/x-ofx")
if c.UserAgent != "" { if c.UserAgent != "" {
request.Header.Set("User-Agent", c.UserAgent) request.Header.Set("User-Agent", c.UserAgent)
} }