aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.go6
1 files 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 {