From 1cc508c6d38185472017619b7233a4af0c6acade Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Tue, 2 Oct 2018 20:20:07 -0400 Subject: [PATCH] Don't export Client's rawRequestCookies method It is used to fix bad behavior and should not be exposed --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 2933ac7..a64ce30 100644 --- a/client.go +++ b/client.go @@ -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