1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-11-22 03:30:04 -05:00

Merge pull request #7 from aclindsa/dont_export_rawrequestcookies

Don't export Client's rawRequestCookies method
This commit is contained in:
Aaron Lindsay 2018-10-02 20:27:34 -04:00 committed by GitHub
commit 54666608a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,8 +87,8 @@ func RawRequest(URL string, r io.Reader) (*http.Response, error) {
return response, nil
}
// RawRequestCookies is RawRequest with the added feature of sending cookies
func RawRequestCookies(URL string, r io.Reader, cookies []*http.Cookie) (*http.Response, error) {
// rawRequestCookies is RawRequest with the added feature of sending cookies
func rawRequestCookies(URL string, r io.Reader, cookies []*http.Cookie) (*http.Response, error) {
if !strings.HasPrefix(URL, "https://") {
return nil, errors.New("Refusing to send OFX request with possible plain-text password over non-https protocol")
}
@ -142,7 +142,7 @@ func (c *Client) RequestNoParse(r *Request) (*http.Response, error) {
return nil, err
}
return RawRequestCookies(r.URL, b, response.Cookies())
return rawRequestCookies(r.URL, b, response.Cookies())
}
return response, err