aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-20 23:49:28 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-20 23:49:28 +0100
commita40075b5a70eac0027f15576c4b16ea39faf940a (patch)
tree2b6867a3c5bb4a8b1f3f9f600419282c19522554
parent416bf202ae4a7bc54cdf54ffa62bb1e5e7bb07cb (diff)
revert
-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 {