From 60ec5ad560124272abec0b904f79c913c3cb347c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Br=C3=BCheim?= Date: Wed, 9 Nov 2022 16:48:38 +0100 Subject: [PATCH] Fixes #64 Support for cookies expose a SetJar method to set a http.CookieJar to the http client --- client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client.go b/client.go index 7ea68d2..df68846 100644 --- a/client.go +++ b/client.go @@ -83,6 +83,11 @@ func (c *Client) SetTransport(transport http.RoundTripper) { c.c.Transport = transport } +// SetJar exposes the ability to set a cookie jar to the client. +func (c *Client) SetJar(jar http.CookieJar) { + c.c.Jar = jar +} + // Connect connects to our dav server func (c *Client) Connect() error { rs, err := c.options("/")