From a40075b5a70eac0027f15576c4b16ea39faf940a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 20 Dec 2015 23:49:28 +0100 Subject: revert --- client.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 8a88728..8b9cf5d 100644 --- a/client.go +++ b/client.go @@ -12,10 +12,12 @@ import ( "time" ) +type Links map[string]string + // Client ... type Client struct { Dir Directory - Link map[string]string + Link Links Location string nonce chan string RetryAfter time.Duration @@ -116,7 +118,7 @@ func (c *Client) parseHeader(r *http.Response) { c.Location = r.Header.Get("Location") - c.Link = make(map[string]string) + c.Link = make(Links) for _, l := range r.Header["Link"] { re := linksRe.FindStringSubmatch(l) if len(re) == 3 { -- cgit v1.2.3