mirror of
https://github.com/aclindsa/ofxgo.git
synced 2024-10-30 05:20:05 -04: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:
parent
12ea3b7e8b
commit
cb48d30deb
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user